configure.ac: add --enable-profile
authorOded Gabbay <oded.gabbay@gmail.com>
Thu, 7 Jan 2016 15:20:47 +0000 (17:20 +0200)
committerOded Gabbay <oded.gabbay@gmail.com>
Fri, 8 Jan 2016 19:59:47 +0000 (21:59 +0200)
commit6613042c4ed4d8ef64fa21ad19a2131dae2f4702
treed6c8801422c6ed09c35569dcd7e0fe1c8a368412
parent1e463d20ba38d0af409b7b9b825b31330f4b4f0b
configure.ac: add --enable-profile

For profiling mesa's code, especially llvmpipe, PROFILE should be
defined. Currently, this define can only be generated if mesa is
built using scons.
This patch makes it possible to generate this define also when building
mesa through automake tools.

v2:

- Change --enable-llvmpipe-profile to --enable-profile
- Add -fno-omit-frame-pointer to CFLAGS and CXXFLAGS when enabling profile

Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
configure.ac