diff --git a/autogen.sh b/autogen.sh index 3ad167a3bb..a9409de153 100755 --- a/autogen.sh +++ b/autogen.sh @@ -517,7 +517,14 @@ EOF fi if test -f $topdir_file; then - run_and_check $ompi_aclocal -I config + flags= + if test "$want_orte" = "1"; then + flags="$flags -I orte/config" + fi + if test "$want_ompi" = "1"; then + flags="$flags -I ompi/config" + fi + run_and_check $ompi_aclocal -I config -I opal/config $flags else run_and_check $ompi_aclocal fi @@ -1623,12 +1630,35 @@ fi if test -f VERSION -a -f configure.ac -a -f $topdir_file ; then # locations to look for mca modules config_project_list="opal" + project_file=config/project_list.m4 + rm -f $project_file + cat > $project_file <> $project_file + project_name_long="Open MPI Run Time Environment" + project_name_short="openmpi-rte" fi if test "$want_ompi" = "1" ; then config_project_list="$config_project_list ompi" + echo "m4_define([project_ompi], [1])" >> $project_file + project_name_long="Open MPI" + project_name_short="openmpi" fi + cat >> $project_file < 0)) { diff --git a/opal/config/config_files.m4 b/opal/config/config_files.m4 new file mode 100644 index 0000000000..46c881a446 --- /dev/null +++ b/opal/config/config_files.m4 @@ -0,0 +1,30 @@ +# -*- shell-script -*- +# +# Copyright (c) 2009 Cisco Systems, Inc. All rights reserved. +# $COPYRIGHT$ +# +# Additional copyrights may follow +# +# $HEADER$ +# + +# This file is m4_included in the top-level configure.ac + +AC_CONFIG_FILES([ + opal/Makefile + opal/etc/Makefile + opal/include/Makefile + opal/asm/Makefile + opal/datatype/Makefile + opal/event/Makefile + opal/event/compat/Makefile + opal/event/compat/sys/Makefile + opal/util/Makefile + opal/util/keyval/Makefile + opal/mca/base/Makefile + opal/tools/wrappers/Makefile + opal/tools/wrappers/opalcc-wrapper-data.txt + opal/tools/wrappers/opalc++-wrapper-data.txt + opal/tools/opal-checkpoint/Makefile + opal/tools/opal-restart/Makefile +]) diff --git a/config/opal_configure_options.m4 b/opal/config/opal_configure_options.m4 similarity index 99% rename from config/opal_configure_options.m4 rename to opal/config/opal_configure_options.m4 index 31a2c650ac..b575ff2441 100644 --- a/config/opal_configure_options.m4 +++ b/opal/config/opal_configure_options.m4 @@ -10,7 +10,7 @@ dnl Copyright (c) 2004-2005 High Performance Computing Center Stuttgart, dnl University of Stuttgart. All rights reserved. dnl Copyright (c) 2004-2005 The Regents of the University of California. dnl All rights reserved. -dnl Copyright (c) 2006-2008 Cisco Systems, Inc. All rights reserved. +dnl Copyright (c) 2006-2009 Cisco Systems, Inc. All rights reserved. dnl Copyright (c) 2007 Sun Microsystems, Inc. All rights reserved. dnl Copyright (c) 2009 IBM Corporation. All rights reserved. dnl Copyright (c) 2009 Los Alamos National Security, LLC. All rights @@ -415,6 +415,7 @@ AC_ARG_ENABLE([script-wrapper-compilers], AM_CONDITIONAL([OMPI_WANT_SCRIPT_WRAPPER_COMPILERS], [test "$enable_script_wrapper_compilers" = "yes"]) AC_CONFIG_FILES([ompi/tools/wrappers/ompi_wrapper_script], [chmod +x ompi/tools/wrappers/ompi_wrapper_script]) +AC_CONFIG_FILES([orte/tools/wrappers/orte_wrapper_script], [chmod +x orte/tools/wrappers/orte_wrapper_script]) # # Support per-user config files? diff --git a/orte/config/config_files.m4 b/orte/config/config_files.m4 new file mode 100644 index 0000000000..a9c9dec8cd --- /dev/null +++ b/orte/config/config_files.m4 @@ -0,0 +1,34 @@ +# -*- shell-script -*- +# +# Copyright (c) 2009 Cisco Systems, Inc. All rights reserved. +# $COPYRIGHT$ +# +# Additional copyrights may follow +# +# $HEADER$ +# + +# This file is m4_included in the top-level configure.ac only if we +# are building the orte project. You cannot put an AC_CONFIG_FILES in +# an AC_DEFUN that is conditionally called (because Autoconf will +# still process the AC_CONFIG_FILES unconditionally); you can only m4 +# include the file or not. + +AC_CONFIG_FILES([ + orte/Makefile + orte/include/Makefile + orte/etc/Makefile + + orte/tools/orted/Makefile + orte/tools/orterun/Makefile + orte/tools/wrappers/Makefile + orte/tools/wrappers/ortecc-wrapper-data.txt + orte/tools/wrappers/ortec++-wrapper-data.txt + orte/tools/orte-checkpoint/Makefile + orte/tools/orte-iof/Makefile + orte/tools/orte-restart/Makefile + orte/tools/orte-ps/Makefile + orte/tools/orte-clean/Makefile + orte/tools/orte-top/Makefile + orte/tools/orte-bootproxy/Makefile +]) diff --git a/config/orte_configure_options.m4 b/orte/config/orte_configure_options.m4 similarity index 100% rename from config/orte_configure_options.m4 rename to orte/config/orte_configure_options.m4 diff --git a/test/Makefile.am b/test/Makefile.am index 46cf168f82..2906f36604 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -19,8 +19,12 @@ EXTRA_DIST = CMakeLists.txt +if PROJECT_OMPI + REQUIRES_OMPI = peruse +endif + # support needs to be first for dependencies -SUBDIRS = support asm class threads peruse +SUBDIRS = support asm class threads $(REQUIRES_OMPI) DIST_SUBDIRS = event $(SUBDIRS) TESTS =