ソースを参照

configure.ac: if the environment variable NVCC is set, use it directly instead of looking for the compiler

Nathalie Furmento 12 年 前
コミット
fddb5e66a2
共有1 個のファイルを変更した4 個の追加2 個の削除を含む
  1. 4 2
      configure.ac

+ 4 - 2
configure.ac

@@ -443,8 +443,10 @@ if test x$enable_cuda = xyes -o x$enable_cuda = xmaybe; then
 fi
 
 if test x$enable_cuda = xyes; then
-        AC_PATH_PROG([NVCC], [nvcc], [not-found],
-	  [$cuda_dir/bin:$PATH:/usr/local/cuda/bin:/usr/bin:/bin])
+   	if test "$NVCC" = "" ; then
+            AC_PATH_PROG([NVCC], [nvcc], [not-found],
+	   	[$cuda_dir/bin:$PATH:/usr/local/cuda/bin:/usr/bin:/bin])
+	fi
 	if test "x$NVCC" = "xnot-found"; then
 	   AC_MSG_WARN(['nvcc' not found, disabling CUDA])
 	   enable_cuda=no