* remove the mention of the static link check in configure ouput

* add a (ecologic) warning at the end of configure if a module is
   statically linked to eina


SVN revision: 41226
This commit is contained in:
Vincent Torri 2009-06-30 16:18:41 +00:00
parent c803ed44d3
commit 07d7e5ce66
2 changed files with 8 additions and 3 deletions

View File

@ -428,3 +428,10 @@ echo "Now type 'make' ('gmake' on some systems) to compile $PACKAGE,"
echo "and then afterwards as root (or the user who will install this), type"
echo "'make install'. Change users with 'su' or 'sudo' appropriately."
echo
if test "x${have_static_module}" = "xyes" ; then
echo -e "\0033\01331;31mWarning\0033\01331;0m: You are trying to link statically one or more modules to Eina."
echo " You must know what you are doing, or else you will have a lot of problems."
echo " And dolphins will disappear from the earth."
echo " Think about that."
echo
fi

View File

@ -42,14 +42,12 @@ if test "x${want_module}" = "xyes" -a "x${enable_module}" = "xstatic" ; then
static_module="yes"
fi
AC_MSG_CHECKING([whether to statically link $3])
AC_MSG_RESULT([${static_module}])
AM_CONDITIONAL(EINA_BUILD_[]UP, [test "x${build_module}" = "xyes"])
AM_CONDITIONAL(EINA_STATIC_BUILD_[]UP, [test "x${static_module}" = "xyes"])
if test "x${static_module}" = "xyes" ; then
AC_DEFINE(EINA_STATIC_BUILD_[]UP, 1, [Set to 1 if $2 is statically built])
have_static_module="yes"
fi
enable_[]DOWN="no"