]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - opcodes/configure.ac
ENABLE_CHECKING in bfd, opcodes, binutils, ld
[thirdparty/binutils-gdb.git] / opcodes / configure.ac
index 7cf0d2968b2b6d43e70ec8730383d733bb49ff0f..911c9c6f0826dd1922807ce7e66724715063bbbd 100644 (file)
@@ -40,6 +40,19 @@ AC_DISABLE_SHARED
 
 LT_INIT
 
+ac_checking=
+. ${srcdir}/../bfd/development.sh
+test "$development" = true && ac_checking=yes
+AC_ARG_ENABLE(checking,
+[  --enable-checking       enable run-time checks],
+[case "${enableval}" in
+  no|none)  ac_checking= ;;
+  *)       ac_checking=yes ;;
+esac])dnl
+if test x$ac_checking != x ; then
+  AC_DEFINE(ENABLE_CHECKING, 1, [Define if you want run-time sanity checks.])
+fi
+
 AC_ARG_ENABLE(targets,
 [  --enable-targets        alternative target configurations],
 [case "${enableval}" in