configure.ac: set LLVM_{C, CXX, LD}FLAGS only as needed
authorEmil Velikov <emil.velikov@collabora.com>
Wed, 18 Jan 2017 13:54:02 +0000 (13:54 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 10 Feb 2017 11:47:24 +0000 (11:47 +0000)
commit4d8bb9cf8c8e8bd3185461760ca89e6021c0b8e0
treee3c180c5ee7575d221ee0e5983fdcbd700c00b5d
parentfc30992a54dbf4274e8741ebd64f289e06b38096
configure.ac: set LLVM_{C, CXX, LD}FLAGS only as needed

Earlier refactoring commits started setting the above regardless if LLVM
is used or not. Move them to the respective section to restore the
original functionality.

Since we require the preprocessor flags (includes in particular) for the
header version parsing keep those as-is. They are not used outside of
configure.ac thus should not cause any side-effects.

As-is adding the C/CXXFLAGS can lead to build issues on when
cross-compiling.

Cc: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: Tomasz Figa <tfiga@chromium.org>
Cc: "17.0" <mesa-stable@lists.freedesktop.org>
Reported-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Tobias Droste <tdroste@gmx.de>
configure.ac