configure.ac: Set the `ASM_DEBUG' automake conditional at the right time.
[catacomb] / configure.ac
index cc7f3b4..a415d05 100644 (file)
@@ -172,7 +172,6 @@ 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
@@ -186,11 +185,12 @@ AC_ARG_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
+case $mdw_asm_debug in
   no) ;;
   *) AC_DEFINE([ENABLE_ASM_DEBUG], [1],
        [Define to enable assembler-level debugging.]) ;;
 esac
+AM_CONDITIONAL([ASM_DEBUG], [test x$mdw_asm_debug != xno])
 
 dnl Check for leading underscores on C symbols.
 LT_SYS_SYMBOL_USCORE