Change --enable-debug to --enable-ndebug and define NDEBUG vs. DEBUG.