summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2011-08-03 00:53:57 +0100
committerIan Lynagh <igloo@earth.li>2011-08-03 00:53:57 +0100
commit1422ea4e0d9e0e9995e57da7ce00fec8109e6772 (patch)
tree8e1cb31054cc9be1cf5ee633c38ea245a267e515 /configure.ac
parent6d934cce1d4ccbcc8abf7985b66d36d4386808db (diff)
downloadhaskell-1422ea4e0d9e0e9995e57da7ce00fec8109e6772.tar.gz
Refactor configure.ac's: Define FIND_GCC() in aclocal.m4
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac13
1 files changed, 1 insertions, 12 deletions
diff --git a/configure.ac b/configure.ac
index 2045a15aee..29185d3ca3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -426,18 +426,7 @@ AC_SUBST([SplitObjsBroken])
dnl ** Which gcc to use?
dnl --------------------------------------------------------------
-if test "$TargetOS_CPP" = "darwin" &&
- test "$XCodeVersion1" -ge 4
-then
- # From Xcode 4, use 'gcc-4.2' to force the use of the gcc legacy
- # backend (instead of the LLVM backend)
- FP_ARG_WITH_PATH_GNU_PROG([CC], [gcc-4.2])
-else
- FP_ARG_WITH_PATH_GNU_PROG([CC], [gcc])
-fi
-export CC
-WhatGccIsCalled="$CC"
-AC_SUBST(WhatGccIsCalled)
+FIND_GCC()
dnl ** Which ld to use?
dnl --------------------------------------------------------------