configure: add a with-sanitizer switch
authorShaleen Jain <shaleen.jain95@gmail.com>
Thu, 24 Aug 2017 12:33:12 +0000 (18:03 +0530)
committerThomas Guillem <thomas@gllm.fr>
Mon, 28 Aug 2017 11:32:40 +0000 (13:32 +0200)
commit2bc9957c615d9505f89d88511a0d6ef3889b392b
tree85fc84a0096ad691399537df08387f3915fff5c9
parent57949e7a9b9da4d9130db0359199b16fca1b061c
configure: add a with-sanitizer switch

Add an option to compile with a set of the recommended flags for the various
santizers.

Multiple comma separated sanitizers can be specified.

This patch also disables no-undefined-symbols(-Wl,-z,defs) only when this
switch is used, to avoid link errors, mainly with asan.

Signed-off-by: Thomas Guillem <thomas@gllm.fr>
configure.ac