Updated configure.ac to detect presence of the CUDA toolkit