summaryrefslogtreecommitdiff
path: root/libraries/base/configure.ac
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2007-04-06 15:18:56 +0000
committerIan Lynagh <igloo@earth.li>2007-04-06 15:18:56 +0000
commit020e535c9b4057480c9bf643a99029f965dd100e (patch)
treeb5a608fd4471e87accd599c29038c2e4dcadcf4c /libraries/base/configure.ac
parent65de1499bb56043f6ee70e76fa40e08afd52f919 (diff)
downloadhaskell-020e535c9b4057480c9bf643a99029f965dd100e.tar.gz
Allow additional options to pass on to ./configure to be given
Diffstat (limited to 'libraries/base/configure.ac')
-rw-r--r--libraries/base/configure.ac11
1 files changed, 11 insertions, 0 deletions
diff --git a/libraries/base/configure.ac b/libraries/base/configure.ac
index d1927e896c..24048e3bb6 100644
--- a/libraries/base/configure.ac
+++ b/libraries/base/configure.ac
@@ -5,6 +5,17 @@ AC_CONFIG_SRCDIR([include/HsBase.h])
AC_CONFIG_HEADERS([include/HsBaseConfig.h])
+AC_ARG_WITH([cc],
+ [C compiler],
+ [OLDPATH=$PATH
+ PATH=`dirname $withval`:$PATH
+ AC_PROG_CC(`basename $withval`)
+ PATH=$OLDPATH
+ CC=$withval],
+ [AC_PROG_CC()])
+echo CC is $CC >&5
+echo CC is $CC >&6
+
# do we have long longs?
AC_CHECK_TYPES([long long])