diff options
author | Ian Lynagh <igloo@earth.li> | 2011-08-03 00:49:10 +0100 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2011-08-03 00:49:10 +0100 |
commit | 6d934cce1d4ccbcc8abf7985b66d36d4386808db (patch) | |
tree | 4f73a7b53fd478f70f2bad0fbe7ea712d24c9bdf /distrib | |
parent | a01e195400b0495d8971f0ebe1c246286b764aac (diff) | |
download | haskell-6d934cce1d4ccbcc8abf7985b66d36d4386808db.tar.gz |
Refactor configure.ac's: Put XCODE_VERSION() in aclocal.m4
Diffstat (limited to 'distrib')
-rw-r--r-- | distrib/configure.ac.in | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/distrib/configure.ac.in b/distrib/configure.ac.in index a37800458b..72fb71258d 100644 --- a/distrib/configure.ac.in +++ b/distrib/configure.ac.in @@ -47,27 +47,7 @@ dnl ** Find the path to sed ** # AC_PATH_PROG(SedCmd,gsed sed,sed) -# -dnl ** How to invoke gcc/cpp ** -# -if test "$TargetOS_CPP" = "darwin" -then - AC_MSG_CHECKING(XCode version) - XCodeVersion=`xcodebuild -version | grep Xcode | sed "s/Xcode //"` - # Old XCode versions don't actually give the XCode version - if test "$XCodeVersion" = "" - then - AC_MSG_RESULT(not found (too old?)) - else - AC_MSG_RESULT($XCodeVersion) - XCodeVersion1=`echo "$XCodeVersion" | sed 's/\..*//'` -changequote(, )dnl - XCodeVersion2=`echo "$XCodeVersion" | sed 's/[^.]*\.\([^.]*\).*/\1/'` -changequote([, ])dnl - AC_MSG_NOTICE(XCode version component 1: $XCodeVersion1) - AC_MSG_NOTICE(XCode version component 2: $XCodeVersion2) - fi -fi +XCODE_VERSION() dnl ** Which gcc to use? dnl -------------------------------------------------------------- |