diff options
author | Jérémie Laval <jeremie.laval@gmail.com> | 2013-03-03 02:34:00 +0400 |
---|---|---|
committer | Jérémie Laval <jeremie.laval@gmail.com> | 2013-03-03 02:37:39 +0400 |
commit | b8a3862ef6dba6eeb06f00946b89a38d875d3dee (patch) | |
tree | b53b82de6acece6f77b129faf25ff50720d224c5 /configure | |
parent | c41832cd05d3fecd9367aae75b3f8f1c648a1193 (diff) |
[build] If ./configure fails with --platform=mac, inform the user about our compilation guide.
Since MonoDevelop doesn't compile on Mac out-of-the box, prevent unnecessary user anger by redirecting him to the guide with the correct environment variables to export.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -132,6 +132,16 @@ select_packages () done } +handle_config_error () +{ + if test "$profile" = "mac"; then + echo "" + echo "Have you followed http://monodevelop.com/Developers/Mac_Support/Building_MonoDevelop_on_OS_X ?" + echo "" + fi + exit 1 +} + configure_packages () { rm -f local-config/* @@ -159,7 +169,7 @@ configure_packages () exit 1 fi pushd $path > /dev/null - PKG_CONFIG_PATH=$localconf:$PKG_CONFIG_PATH $sct --prefix=$prefix $ops || exit 1 + PKG_CONFIG_PATH=$localconf:$PKG_CONFIG_PATH $sct --prefix=$prefix $ops || handle_config_error popd > /dev/null create_local_config $path packages="$packages $path" |