Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJérémie Laval <jeremie.laval@gmail.com>2013-03-03 02:34:00 +0400
committerJérémie Laval <jeremie.laval@gmail.com>2013-03-03 02:37:39 +0400
commitb8a3862ef6dba6eeb06f00946b89a38d875d3dee (patch)
treeb53b82de6acece6f77b129faf25ff50720d224c5 /configure
parentc41832cd05d3fecd9367aae75b3f8f1c648a1193 (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-xconfigure12
1 files changed, 11 insertions, 1 deletions
diff --git a/configure b/configure
index c947cb6169..98f5fd54c1 100755
--- a/configure
+++ b/configure
@@ -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"