From 8d5415676cb95c0e9225f68112b20c36fcff6848 Mon Sep 17 00:00:00 2001 From: mquinson Date: Fri, 20 Nov 2009 09:47:26 +0000 Subject: [PATCH] A configure option to control the supernovae mode git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6842 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- configure.ac | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 2337ece7a2..e8432814aa 100644 --- a/configure.ac +++ b/configure.ac @@ -333,7 +333,6 @@ then fi AM_CONDITIONAL(GRAMINE_MODE,test x$gramine_mode != xno) - AM_MAINTAINER_MODE if test x$USE_MAINTAINER_MODE = xyes then @@ -342,6 +341,21 @@ then fi SG_COMPILE_FLAGS +## +## Support for the supernovae compilation mode +## +if test x$USE_MAINTAINER_MODE = xyes +then + not_maintainer_mode=yes +else + not_maintainer_mode=no +fi + +AC_ARG_ENABLE(supernovae, + AS_HELP_STRING([--enable-supernovae],[Put the whole library in one compilation unit only to help gcc optimizing the code]), + supernovae=$enableval,supernovae=$not_maintainer_mode) +AM_CONDITIONAL(SUPERNOVAE_MODE, test x$supernovae != xno) + AC_SUBST([CFLAGS]) AC_SUBST([CPPFLAGS]) AC_SUBST([LDFLAGS]) @@ -563,6 +577,7 @@ Configuration of package \`${PACKAGE}' (version ${VERSION}) on $gras_arch_name ( Compile Java: ${use_java} Maintainer mode: ${USE_MAINTAINER_MODE} + Supernovae mode: ${supernovae} " if test x$botbuild = xyes ; then -- 2.20.1