Update configure with switches for app, ParadisEO, and tutorial.

Add ParadisEO/Lesson1 tutorial in build-process.
minor fixes.
This commit is contained in:
kuepper 2004-09-22 08:18:29 +00:00
commit e388461a3b
16 changed files with 113 additions and 8 deletions

View file

@ -4,10 +4,15 @@
## ##
############################################################################### ###############################################################################
SUBDIRS = src test doc app tutorial contrib win SUBDIRS = src test doc contrib win
if USE_APPLICATIONS
SUBDIRS += app
endif
if USE_TUTORIAL
SUBDIRS += tutorial
endif
# Directory for documents
#Directory for documents
DOCDIR = ~/public_html/eodocs DOCDIR = ~/public_html/eodocs
#Directory for indices -- not useful for the user #Directory for indices -- not useful for the user

View file

@ -1,3 +1,23 @@
# AC_APPLICATIONS()
#
# Compile applications unless user requests not to do it.
AC_DEFUN([AC_APPLICATIONS],[dnl
AC_ARG_ENABLE([applications],[ --enable-applications build applications (default=yes)],
[ case "${enableval}" in
yes) applications=true ;;
no) applications=false ;;
*) AC_MSG_ERROR(bad value ${enableval} for applications option) ;;
esac],
[applications=true])
if test "$applications" = "true"; then
AM_CONDITIONAL([USE_APPLICATIONS], true)
else
AM_CONDITIONAL([USE_APPLICATIONS], false)
fi
])
# AC_PARADISEO() # AC_PARADISEO()
# #
# Compile ParadisEO if user requests it. # Compile ParadisEO if user requests it.
@ -10,10 +30,15 @@ AC_DEFUN([AC_PARADISEO],[dnl
esac], esac],
[paradiseo=false]) [paradiseo=false])
if test "$paradiseo" = "true"; then if test "$paradiseo" = "true"; then
AC_DEFINE([PARADISEO], 1, [ParadisEO flag])
AM_CONDITIONAL([USE_PARADISEO], true) AM_CONDITIONAL([USE_PARADISEO], true)
AC_CHECK_PROG([MPICXX], [mpiCC], [], AC_MSG_ERROR([Need mpiCC to build PAradisEO.])) AC_CHECK_PROGS(MPICXX, [mpic++ mpiCC mpicxx], [false])
AC_CHECK_PROG([MPIRUN], [mpirun], [], AC_MSG_ERROR([Need mpirun to use PAradisEO.])) if test $MPICXX = false; then
AC_MSG_ERROR([mpic++ is required for ParadisEO builds.])
fi
AC_CHECK_PROGS(MPIRUN, [mpirun], [false])
if test $MPIRUN = false; then
AC_MSG_ERROR([mpirun is required for ParadisEO builds.])
fi
else else
AM_CONDITIONAL([USE_PARADISEO], false) AM_CONDITIONAL([USE_PARADISEO], false)
fi fi
@ -21,6 +46,26 @@ AC_DEFUN([AC_PARADISEO],[dnl
# AC_TUTORIAL()
#
# Compile tutorial unless user requests not to do it.
AC_DEFUN([AC_TUTORIAL],[dnl
AC_ARG_ENABLE([tutorial],[ --enable-tutorial build tutorial (default=yes)],
[ case "${enableval}" in
yes) tutorial=true ;;
no) tutorial=false ;;
*) AC_MSG_ERROR(bad value ${enableval} for tutorial option) ;;
esac],
[tutorial=true])
if test "$tutorial" = "true"; then
AM_CONDITIONAL([USE_TUTORIAL], true)
else
AM_CONDITIONAL([USE_TUTORIAL], false)
fi
])
dnl Available from the GNU Autoconf Macro Archive at: dnl Available from the GNU Autoconf Macro Archive at:
dnl http://www.gnu.org/software/ac-archive/htmldoc/ac_cxx_have_sstream.html dnl http://www.gnu.org/software/ac-archive/htmldoc/ac_cxx_have_sstream.html
dnl dnl

View file

@ -16,7 +16,9 @@ AM_INIT_AUTOMAKE
AM_CONFIG_HEADER([config.h]) AM_CONFIG_HEADER([config.h])
dnl user-switches dnl user-switches
AC_APPLICATIONS
AC_PARADISEO AC_PARADISEO
AC_TUTORIAL
dnl Checks for programs. dnl Checks for programs.
AC_PROG_CC AC_PROG_CC
@ -65,4 +67,6 @@ AC_OUTPUT(Makefile \
tutorial/Lesson3/Makefile \ tutorial/Lesson3/Makefile \
tutorial/Lesson4/Makefile \ tutorial/Lesson4/Makefile \
tutorial/Lesson5/Makefile \ tutorial/Lesson5/Makefile \
tutorial/ParadisEO/Makefile \
tutorial/ParadisEO/Lesson1/Makefile \
win/Makefile) win/Makefile)

View file

@ -24,11 +24,22 @@
#ifndef eoEOSendMessFrom_h #ifndef eoEOSendMessFrom_h
#define eoEOSendMessFrom_h #define eoEOSendMessFrom_h
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <iostream>
#include <string> #include <string>
#ifdef HAVE_SSTREAM
#include <sstream>
#else
#include <strstream.h> #include <strstream.h>
#endif
#include <mpi.h> #include <mpi.h>
#include <paradisEO/comm/messages/eoMessFrom.h> #include <paradisEO/comm/messages/eoMessFrom.h>
using namespace std;
/** /**
A message embeding a set of immigrants ... A message embeding a set of immigrants ...
*/ */

View file

@ -27,7 +27,9 @@
#ifndef _eoFileSnapshot_h #ifndef _eoFileSnapshot_h
#define _eoFileSnapshot_h #define _eoFileSnapshot_h
#ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif
#include <string> #include <string>
#include <fstream> #include <fstream>

View file

@ -26,7 +26,9 @@
#ifndef _eoGnuplot_H #ifndef _eoGnuplot_H
#define _eoGnuplot_H #define _eoGnuplot_H
#ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif
#include <string> #include <string>
@ -152,7 +154,7 @@ inline void eoGnuplot::initGnuPlot(std::string _title, std::string _extra)
* Created......: Mon Mar 13 13:50:11 1995 * Created......: Mon Mar 13 13:50:11 1995
* Description..: Communication par pipe bidirectionnel avec un autre process * Description..: Communication par pipe bidirectionnel avec un autre process
* *
* Ident........: $Id: eoGnuplot.h,v 1.10 2004-09-17 16:53:15 kuepper Exp $ * Ident........: $Id: eoGnuplot.h,v 1.11 2004-09-22 08:18:28 kuepper Exp $
* ---------------------------------------------------------------------- * ----------------------------------------------------------------------
*/ */

View file

@ -28,7 +28,9 @@
#ifndef _eoGnuplot1DMonitor_H #ifndef _eoGnuplot1DMonitor_H
#define _eoGnuplot1DMonitor_H #define _eoGnuplot1DMonitor_H
#ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif
#include <string> #include <string>

View file

@ -28,7 +28,9 @@
#ifndef _eoGnuplot1DSnapshot_H #ifndef _eoGnuplot1DSnapshot_H
#define _eoGnuplot1DSnapshot_H #define _eoGnuplot1DSnapshot_H
#ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif
#include <string> #include <string>
#ifdef HAVE_SSTREAM #ifdef HAVE_SSTREAM

View file

@ -64,7 +64,9 @@
* It is an eoPersistent because we need to be able to use eoParamValue<eoHowMany> * It is an eoPersistent because we need to be able to use eoParamValue<eoHowMany>
*/ */
#ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif
#ifdef HAVE_SSTREAM #ifdef HAVE_SSTREAM
#include <sstream> #include <sstream>

View file

@ -27,7 +27,9 @@
#ifndef eoParam_h #ifndef eoParam_h
#define eoParam_h #define eoParam_h
#ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
#include <math.h> // for floor #include <math.h> // for floor

View file

@ -35,7 +35,9 @@ that can be used to dump to the screen
#ifndef _eoPopStat_h #ifndef _eoPopStat_h
#define _eoPopStat_h #define _eoPopStat_h
#ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif
#include <utils/eoStat.h> #include <utils/eoStat.h>

View file

@ -1 +1,5 @@
if USE_PARADISEO
SUBDIRS = Lesson1 Lesson2 Lesson3 Lesson4 Lesson5 ParadisEO
else
SUBDIRS = Lesson1 Lesson2 Lesson3 Lesson4 Lesson5 SUBDIRS = Lesson1 Lesson2 Lesson3 Lesson4 Lesson5
endif

View file

@ -0,0 +1 @@
Makefile.in

View file

@ -0,0 +1 @@
Makefile.in

View file

@ -0,0 +1,19 @@
noinst_PROGRAMS = IslandBitEA IslandBitEA1 IslandBitEA2
LIBEO = $(top_builddir)/src/libeo.a
LIBEOUTILS = $(top_builddir)/src/utils/libeoutils.a
CXX = $(MPICXX)
LD = $(MPICXX)
AM_CXXFLAGS = -I$(top_srcdir)/src
DEPS = $(LIBEOUTILS) $(LIBEO)
LIBS = $(LIBEOUTILS) $(LIBEO)
noinst_HEADERS = binary_value.h
IslandBitEA_SOURCES = IslandBitEA.cpp
IslandBitEA1_SOURCES = IslandBitEA1.cpp
IslandBitEA2_SOURCES = IslandBitEA2.cpp

View file

@ -0,0 +1 @@
SUBDIRS = Lesson1