[Mesa-dev] [PATCH v3 17/25] configure.ac: Move radeon_llvm_check to the top
Tobias Droste
tdroste at gmx.de
Tue Oct 11 23:02:44 UTC 2016
Move the function to the other LLVM related function at the top of the file.
No functional change.
Signed-off-by: Tobias Droste <tdroste at gmx.de>
---
configure.ac | 34 +++++++++++++++++-----------------
1 file changed, 17 insertions(+), 17 deletions(-)
diff --git a/configure.ac b/configure.ac
index 470a4ec..0b5c17a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1000,6 +1000,23 @@ llvm_add_target() {
fi
}
+radeon_llvm_check() {
+ if test ${LLVM_VERSION_INT} -lt 307; then
+ amdgpu_llvm_target_name='r600'
+ else
+ amdgpu_llvm_target_name='amdgpu'
+ fi
+ llvm_check_version_for $2 $3 $4 $1
+ if test true && $LLVM_CONFIG --targets-built | grep -iqvw $amdgpu_llvm_target_name ; then
+ AC_MSG_ERROR([LLVM $amdgpu_llvm_target_name not enabled in your LLVM build.])
+ fi
+ LLVM_COMPONENTS="${LLVM_COMPONENTS} $amdgpu_llvm_target_name bitreader ipo"
+ NEED_RADEON_LLVM=yes
+ if test "x$have_libelf" != xyes; then
+ AC_MSG_ERROR([$1 requires libelf when using llvm])
+ fi
+}
+
llvm_get_version
dnl Options for APIs
@@ -2402,23 +2419,6 @@ require_egl_drm() {
fi
}
-radeon_llvm_check() {
- if test ${LLVM_VERSION_INT} -lt 307; then
- amdgpu_llvm_target_name='r600'
- else
- amdgpu_llvm_target_name='amdgpu'
- fi
- llvm_check_version_for $2 $3 $4 $1
- if test true && $LLVM_CONFIG --targets-built | grep -iqvw $amdgpu_llvm_target_name ; then
- AC_MSG_ERROR([LLVM $amdgpu_llvm_target_name not enabled in your LLVM build.])
- fi
- LLVM_COMPONENTS="${LLVM_COMPONENTS} $amdgpu_llvm_target_name bitreader ipo"
- NEED_RADEON_LLVM=yes
- if test "x$have_libelf" != xyes; then
- AC_MSG_ERROR([$1 requires libelf when using llvm])
- fi
-}
-
swr_require_cxx_feature_flags() {
feature_name="$1"
preprocessor_test="$2"
--
2.10.0
More information about the mesa-dev
mailing list