Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexander Kaznacheev
GHC
Commits
9b875cd4
Commit
9b875cd4
authored
13 years ago
by
Ian Lynagh
Browse files
Options
Downloads
Patches
Plain Diff
Refactor configure.ac's: Put XCODE_VERSION() in aclocal.m4
parent
0f75ae43
Loading
Loading
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
aclocal.m4
+26
-0
26 additions, 0 deletions
aclocal.m4
configure.ac
+1
-20
1 addition, 20 deletions
configure.ac
distrib/configure.ac.in
+1
-21
1 addition, 21 deletions
distrib/configure.ac.in
with
28 additions
and
41 deletions
aclocal.m4
+
26
−
0
View file @
9b875cd4
...
@@ -1581,4 +1581,30 @@ LIBRARY_[]translit([$1], [-], [_])[]_VERSION=`grep -i "^version:" libraries/${di
...
@@ -1581,4 +1581,30 @@ LIBRARY_[]translit([$1], [-], [_])[]_VERSION=`grep -i "^version:" libraries/${di
AC_SUBST(LIBRARY_[]translit([$1], [-], [_])[]_VERSION)
AC_SUBST(LIBRARY_[]translit([$1], [-], [_])[]_VERSION)
])
])
# XCODE_VERSION()
# --------------------------------
# Gets the version number of XCode, if on a Mac
AC_DEFUN([XCODE_VERSION],[
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?))
XCodeVersion1=0
XCodeVersion2=0
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
])
# LocalWords: fi
# LocalWords: fi
This diff is collapsed.
Click to expand it.
configure.ac
+
1
−
20
View file @
9b875cd4
...
@@ -403,26 +403,7 @@ then
...
@@ -403,26 +403,7 @@ then
fi
fi
fi
fi
if test "$TargetOS_CPP" = "darwin"
XCODE_VERSION()
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?))
XCodeVersion1=0
XCodeVersion2=0
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
SplitObjsBroken=NO
SplitObjsBroken=NO
if test "$TargetOS_CPP" = "darwin"
if test "$TargetOS_CPP" = "darwin"
...
...
This diff is collapsed.
Click to expand it.
distrib/configure.ac.in
+
1
−
21
View file @
9b875cd4
...
@@ -47,27 +47,7 @@ dnl ** Find the path to sed **
...
@@ -47,27 +47,7 @@ dnl ** Find the path to sed **
#
#
AC_PATH_PROG(SedCmd,gsed sed,sed)
AC_PATH_PROG(SedCmd,gsed sed,sed)
#
XCODE_VERSION()
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
dnl ** Which gcc to use?
dnl ** Which gcc to use?
dnl --------------------------------------------------------------
dnl --------------------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment