summaryrefslogtreecommitdiff
path: root/libraries/base/configure.ac
diff options
context:
space:
mode:
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])