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