mirror of https://gerrit.osmocom.org/asn1c
add options to readme
parent
312e3e0f96
commit
130cffe9a9
14
INSTALL.md
14
INSTALL.md
|
@ -13,10 +13,18 @@ Configure with the default settings:
|
|||
|
||||
Configure with non-standard settings:
|
||||
|
||||
asn1c specific ./configure options include:
|
||||
asn1c-specific ./configure options include:
|
||||
|
||||
--enable-Werror
|
||||
--enable-ASN_DEBUG
|
||||
Option | Description
|
||||
------------------------ | ---------------------------------------------------
|
||||
--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.
|
||||
|
||||
|
|
|
@ -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.
|
||||
AC_ARG_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])
|
||||
AS_IF([test "x$enable_test_32bit" != xno], [
|
||||
AX_CHECK_COMPILE_FLAG([-m32], [CFLAGS_M32="-m32 -DEXPLICIT_32BIT"],
|
||||
|
@ -146,7 +146,7 @@ SANITIZER_CFLAGS=""
|
|||
dnl Enable Undefined Behavior Sanitizer, if supported.
|
||||
AC_ARG_ENABLE([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])
|
||||
AS_IF([test "x$disable_test_ubsan" != xno], [
|
||||
AX_CHECK_COMPILE_AND_LINK_FLAG([-fsanitize=undefined],
|
||||
|
@ -187,7 +187,7 @@ dnl http://clang.llvm.org/docs/AddressSanitizer.html
|
|||
ASAN_ENV_FLAGS=""
|
||||
AC_ARG_ENABLE([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])
|
||||
AS_IF([test "x$disable_test_asan" != xno], [
|
||||
AX_CHECK_COMPILE_AND_LINK_FLAG([-fsanitize=address],
|
||||
|
@ -223,7 +223,7 @@ dnl Enable LibFuzzer, if supported.
|
|||
LIBFUZZER_CFLAGS=""
|
||||
AC_ARG_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])
|
||||
AS_IF([test "x$enable_test_fuzzer" != xno], [
|
||||
AX_CHECK_COMPILE_AND_LINK_FLAG([-fsanitize=fuzzer],
|
||||
|
|
|
@ -85,7 +85,7 @@ AC_DEFUN([AX_CODE_COVERAGE],[
|
|||
AC_MSG_CHECKING([whether to build with code coverage support])
|
||||
AC_ARG_ENABLE([code-coverage],
|
||||
AS_HELP_STRING([--enable-code-coverage],
|
||||
[Whether to enable code coverage support]),,
|
||||
[enable code coverage statistics collection]),,
|
||||
enable_code_coverage=no)
|
||||
|
||||
AM_CONDITIONAL([CODE_COVERAGE_ENABLED], [test x$enable_code_coverage = xyes])
|
||||
|
|
Loading…
Reference in New Issue