Better clang check

This commit is contained in:
Luca
2018-11-01 09:36:11 +01:00
parent 6a4324f451
commit 875b1e0dd5
+7 -3
View File
@@ -52,9 +52,13 @@ else
AC_CHECK_LIB([numa], [numa_available], [LIBNUMA="-lnuma"])
fi
if test -z `which clang`; then
CC=gcc
else
MACHINE=`uname -m`
SYSTEM=`uname -s`
if test $SYSTEM = "Darwin"; then
CC=clang
fi
if test $ax_cv_PTHREAD_CLANG = "yes"; then
CC=clang
fi