Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Try to compile in supernovae mode when requested to
[simgrid.git] / configure.ac
index 6a9de1b..6b92886 100644 (file)
@@ -9,7 +9,7 @@ dnl GNU LGPL (v2.1) licence.
 ##
 
 AC_PREREQ(2.59)
-AC_INIT([simgrid],[3.3.2-svn],[simgrid-devel@lists.gforge.inria.fr])
+AC_INIT([simgrid],[3.3.3],[simgrid-devel@lists.gforge.inria.fr])
 AC_CONFIG_SRCDIR([include/gras.h])
 AC_CONFIG_HEADERS([src/gras_config.h])
 # A CI_PREREQ(2003.01.16) # We need a recent ACI when having sub-modules
@@ -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])
@@ -469,6 +483,7 @@ AC_CONFIG_FILES([
     for file in                                                 \
      tools/graspe-slave           tools/graspe-master           \
      checkall                     examples/java/runtest         \
+     src/mk_supernovae.sh                                       \
     ; do                                                        \
       test -e $file && chmod +x $file;                          \
     done
@@ -528,6 +543,7 @@ AC_CONFIG_FILES([
       examples/gras/mmrpc/Makefile
       examples/gras/pmm/Makefile
       examples/gras/all2all/Makefile
+      examples/gras/replay/Makefile
     examples/amok/Makefile       
     examples/smpi/Makefile       
 ])
@@ -562,6 +578,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