Browse Source

configure.ac: fix syntax to use test command instead of [

Nathalie Furmento 15 years ago
parent
commit
766ea38063
1 changed files with 4 additions and 1 deletions
  1. 4 1
      configure.ac

+ 4 - 1
configure.ac

@@ -185,7 +185,10 @@ if test x$enable_cuda = xyes -o x$enable_cuda = xmaybe; then
 			enable_cuda=yes
 		], cuda_dir=/usr/local/cuda/)
 
-	[ ! -d "$cuda_dir" -a -d "/c/cuda" ] && cuda_dir=/c/cuda
+	if ! test -d "$cuda_dir" && test -d "/c/cuda" ;
+        then
+                cuda_dir=/c/cuda
+        fi
 
 	if test -d "$cuda_dir/include/"; then
 		CPPFLAGS="${CPPFLAGS} -I$cuda_dir/include/ "