* m4/debug.m4, m4/devel.m4, m4/gccoptim.m4, m4/ndebug.m4: New files.
* Makefile.am (EXTRA_DIST): Add them. * configure.ac: Call adl_ENABLE_DEVEL, adl_ENABLE_DEBUG, ad_GCC_OPTIM, and adl_NDEBUG.
This commit is contained in:
parent
2e97e6447b
commit
e5641f5b69
7 changed files with 98 additions and 3 deletions
6
m4/ndebug.m4
Normal file
6
m4/ndebug.m4
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
AC_DEFUN([adl_NDEBUG],
|
||||
[AC_ARG_ENABLE([assert],
|
||||
[AC_HELP_STRING([--enable-assert],[turn on assertions])])
|
||||
if test "$enable_assert" != yes; then
|
||||
CFLAGS="$CFLAGS -DNDEBUG"
|
||||
fi])
|
||||
Loading…
Add table
Add a link
Reference in a new issue