there are nested functions. -fnested-functions must be passed to the
compiler to allow the compilation on that platform.
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@38544
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
mingw*)
EINA_CFLAGS="${EINA_CFLAGS} ${EVIL_CFLAGS}"
;;
+ darwin*)
+ EINA_CFLAGS="${EINA_CFLAGS} -fnested-functions"
+ ;;
esac
if test "x$enable_coverage" = "xyes" ; then
AC_MSG_CHECKING([for __attribute__])
+dnl On mac os x, error of compilation without -fnested-functions
+case "${host_os}" in
+ darwin*)
+ CFLAGS_SAVE=${CFLAGS}
+ CFLAGS="${CFLAGS} -fnested-functions"
+ ;;
+esac
+
AC_CACHE_VAL([ac_cv___attribute__],
[AC_TRY_COMPILE(
[
)]
)
+case "${host_os}" in
+ darwin*)
+ CFLAGS=${CFLAGS_SAVE}
+ ;;
+esac
+
AC_MSG_RESULT($ac_cv___attribute__)
if test "x${ac_cv___attribute__}" = "xyes" ; then