Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

update configure script to handle --with-X flags passed by cabal

  • Loading branch information...
commit 4cdc1c6f9934aa8df6b0951a990bfbd238d8a241 1 parent e9964ad
Trevor L. McDonell tmcdonell authored
Showing with 3 additions and 4 deletions.
  1. +3 −4 configure.ac
7 configure.ac
View
@@ -2,10 +2,9 @@ AC_INIT([accelerate-cuda], [0.13.0.0], [accelerate-haskell@googlegroups.com])
AC_CONFIG_SRCDIR([Data/Array/Accelerate/CUDA.hs])
AC_CONFIG_FILES([accelerate-cuda.buildinfo cubits/accelerate_cuda_shape.h])
-# This doesn't pick up a user specified '--with-compiler' flag
-#
-AC_PROG_CXX(nvcc)
-AC_PATH_PROG(GHC, ghc)
+AC_ARG_WITH([compiler], [Haskell compiler], [GHC=$withval], [AC_PATH_PROG(GHC, ghc)])
+AC_ARG_WITH([nvcc], [CUDA compiler], [NVCC=$withval], [AC_PROG_CXX(nvcc)])
+AC_ARG_WITH([gcc], [C compiler], [CC=$withval])
AC_DEFUN([AC_SIZEOF_HS], [
AC_MSG_CHECKING(size of [$1])
Please sign in to comment.
Something went wrong with that request. Please try again.