accept --with-cc to set the path to gcc (#2966)
authorSimon Marlow <marlowsd@gmail.com>
Wed, 27 Jan 2010 11:43:29 +0000 (11:43 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Wed, 27 Jan 2010 11:43:29 +0000 (11:43 +0000)
configure.ac

index bb171d2..a415609 100644 (file)
@@ -3,6 +3,11 @@ AC_INIT([Haskell unix package], [2.0], [libraries@haskell.org], [unix])
 # Safety check: Ensure that we are in the correct source directory.
 AC_CONFIG_SRCDIR([include/HsUnix.h])
 
+AC_ARG_WITH([cc],
+            [C compiler],
+            [CC=$withval])
+AC_PROG_CC()
+
 AC_CONFIG_HEADERS([include/HsUnixConfig.h])
 
 # Is this a Unix system?