X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/blobdiff_plain/1a03119625f23b0f6fa3f6a2044343d325f6c7f6..4bc8424a9fde81305a5bcd04708492f3a067b438:/configure.ac diff --git a/configure.ac b/configure.ac index db098dc1..042c7c32 100644 --- a/configure.ac +++ b/configure.ac @@ -158,6 +158,17 @@ catacomb_DEFINE_CPU_OR_ABI([CPUFAM], [2], [cpu], catacomb_DEFINE_CPU_OR_ABI([ABI], [3], [abi], [ABI_], [Define if target ABI is \`$][3\'.]) +AC_ARG_ENABLE([asm-debug], + AS_HELP_STRING([--enable-asm-debug], + [enable assembler debugging features]), + [mdw_asm_debug=$enableval], [mdw_asm_debug=no]) +case $CPUFAM in nil) mdw_asm_debug=no ;; esac +case mdw_asm_debug in + no) ;; + *) AC_DEFINE([ENABLE_ASM_DEBUG], [1], + [Define to enable assembler-level debugging.]) ;; +esac + dnl Establish Automake conditions for things. catacomb_CPU_FAMILIES([catacomb_CLEAR_FLAGS]) m4_define([catacomb_COND_CPU], @@ -172,6 +183,7 @@ m4_ifdef([catacomb_seen_abi/$3], [], m4_define([catacomb_seen_abi/$3], [t])])]) catacomb_CPU_FAMILIES([catacomb_COND_CPU]) AM_CONDITIONAL([KNOWN_CPUFAM], [test x$CPUFAM != xnil]) +AM_CONDITIONAL([ASM_DEBUG], [test x$mdw_asm_debug != xno]) dnl Report on what we found. case $CPUFAM in