autotools: on OSX warn about prefix being /usr

With Apple's SIP, nobody is allowed to modify the system
(excepted /usr/local). If SIP is enabled, the installation
will just fail.
This commit is contained in:
Jean Guyomarc'h 2016-04-02 22:17:53 +02:00
parent 833d87d4ef
commit 3f6b62515b
1 changed files with 14 additions and 0 deletions

View File

@ -6031,6 +6031,20 @@ if test "x$prefix" != "x/usr"; then
echo ""
echo "#-------------------------------------------------------------------#"
fi
elif test "x${have_darwin}" = "xyes"; then
echo ""
echo "#-------------------------------------------------------------------#"
echo "##==-- ALERT --==##"
echo "#-------------------------------------------------------------------#"
echo ""
echo " If you are running Mac OS X >= 10.11 (starting from El Capitan)"
echo " you will have TROUBLE with the prefix you have chosen (/usr)..."
echo " Don't make it double and consider to use the default prefix"
echo " (/usr/local). This is because of Apple's SIP that provides MAC"
echo " and prevents ANYONE modifying the system."
echo ""
echo "#-------------------------------------------------------------------#"
fi
if test "x${efl_deprecated_option}" = "xyes"; then