mesa: Have configure define NDEBUG, not mtypes.h.
authorMatt Turner <mattst88@gmail.com>
Fri, 20 Feb 2015 20:41:46 +0000 (12:41 -0800)
committerMatt Turner <mattst88@gmail.com>
Fri, 20 Feb 2015 22:10:38 +0000 (14:10 -0800)
commitb21ad12485d24565fd7f21addb5c86c77cf64580
tree278e0c3da1e9de54e5890cddd75248c297e2fd5c
parentb6393d70402a60c124c1884d8d0cc1dc6a9b4ca5
mesa: Have configure define NDEBUG, not mtypes.h.

mtypes.h had been defining NDEBUG (used by assert) if DEBUG was not
defined. Confusing and bizarre that you don't get NDEBUG if you don't
include mtypes.h.

... which is just what happened in commit bef38f62e.

Let's let configure define this for us if not using --enable-debug.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
configure.ac
src/mesa/main/mtypes.h