Update configure with switches for app, ParadisEO, and tutorial.
Add ParadisEO/Lesson1 tutorial in build-process. minor fixes.
This commit is contained in:
parent
0a6e0c687c
commit
e388461a3b
16 changed files with 113 additions and 8 deletions
|
|
@ -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
|
||||
|
||||
#Directory for indices -- not useful for the user
|
||||
|
|
|
|||
|
|
@ -1,8 +1,28 @@
|
|||
# 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()
|
||||
#
|
||||
# Compile ParadisEO if user requests it.
|
||||
AC_DEFUN([AC_PARADISEO],[dnl
|
||||
AC_ARG_ENABLE([paradiseo],[ --enable-paradiseo build ParadisEO (default=no)],
|
||||
AC_ARG_ENABLE([paradiseo],[ --enable-paradiseo build ParadisEO (default=no)],
|
||||
[ case "${enableval}" in
|
||||
yes) paradiseo=true ;;
|
||||
no) paradiseo=false ;;
|
||||
|
|
@ -10,10 +30,15 @@ AC_DEFUN([AC_PARADISEO],[dnl
|
|||
esac],
|
||||
[paradiseo=false])
|
||||
if test "$paradiseo" = "true"; then
|
||||
AC_DEFINE([PARADISEO], 1, [ParadisEO flag])
|
||||
AM_CONDITIONAL([USE_PARADISEO], true)
|
||||
AC_CHECK_PROG([MPICXX], [mpiCC], [], AC_MSG_ERROR([Need mpiCC to build PAradisEO.]))
|
||||
AC_CHECK_PROG([MPIRUN], [mpirun], [], AC_MSG_ERROR([Need mpirun to use PAradisEO.]))
|
||||
AC_CHECK_PROGS(MPICXX, [mpic++ mpiCC mpicxx], [false])
|
||||
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
|
||||
AM_CONDITIONAL([USE_PARADISEO], false)
|
||||
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 http://www.gnu.org/software/ac-archive/htmldoc/ac_cxx_have_sstream.html
|
||||
dnl
|
||||
|
|
|
|||
|
|
@ -16,7 +16,9 @@ AM_INIT_AUTOMAKE
|
|||
AM_CONFIG_HEADER([config.h])
|
||||
|
||||
dnl user-switches
|
||||
AC_APPLICATIONS
|
||||
AC_PARADISEO
|
||||
AC_TUTORIAL
|
||||
|
||||
dnl Checks for programs.
|
||||
AC_PROG_CC
|
||||
|
|
@ -65,4 +67,6 @@ AC_OUTPUT(Makefile \
|
|||
tutorial/Lesson3/Makefile \
|
||||
tutorial/Lesson4/Makefile \
|
||||
tutorial/Lesson5/Makefile \
|
||||
tutorial/ParadisEO/Makefile \
|
||||
tutorial/ParadisEO/Lesson1/Makefile \
|
||||
win/Makefile)
|
||||
|
|
|
|||
|
|
@ -24,11 +24,22 @@
|
|||
#ifndef eoEOSendMessFrom_h
|
||||
#define eoEOSendMessFrom_h
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#ifdef HAVE_SSTREAM
|
||||
#include <sstream>
|
||||
#else
|
||||
#include <strstream.h>
|
||||
#endif
|
||||
#include <mpi.h>
|
||||
#include <paradisEO/comm/messages/eoMessFrom.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
/**
|
||||
A message embeding a set of immigrants ...
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -27,7 +27,9 @@
|
|||
#ifndef _eoFileSnapshot_h
|
||||
#define _eoFileSnapshot_h
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include <string>
|
||||
#include <fstream>
|
||||
|
|
|
|||
|
|
@ -26,7 +26,9 @@
|
|||
#ifndef _eoGnuplot_H
|
||||
#define _eoGnuplot_H
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include <string>
|
||||
|
||||
|
|
@ -152,7 +154,7 @@ inline void eoGnuplot::initGnuPlot(std::string _title, std::string _extra)
|
|||
* Created......: Mon Mar 13 13:50:11 1995
|
||||
* 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 $
|
||||
* ----------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
|
|
|
|||
|
|
@ -28,7 +28,9 @@
|
|||
#ifndef _eoGnuplot1DMonitor_H
|
||||
#define _eoGnuplot1DMonitor_H
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include <string>
|
||||
|
||||
|
|
|
|||
|
|
@ -28,7 +28,9 @@
|
|||
#ifndef _eoGnuplot1DSnapshot_H
|
||||
#define _eoGnuplot1DSnapshot_H
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include <string>
|
||||
#ifdef HAVE_SSTREAM
|
||||
|
|
|
|||
|
|
@ -64,7 +64,9 @@
|
|||
* It is an eoPersistent because we need to be able to use eoParamValue<eoHowMany>
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_SSTREAM
|
||||
#include <sstream>
|
||||
|
|
|
|||
|
|
@ -27,7 +27,9 @@
|
|||
#ifndef eoParam_h
|
||||
#define eoParam_h
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
#include <math.h> // for floor
|
||||
|
|
|
|||
|
|
@ -35,7 +35,9 @@ that can be used to dump to the screen
|
|||
#ifndef _eoPopStat_h
|
||||
#define _eoPopStat_h
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include <utils/eoStat.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -1 +1,5 @@
|
|||
if USE_PARADISEO
|
||||
SUBDIRS = Lesson1 Lesson2 Lesson3 Lesson4 Lesson5 ParadisEO
|
||||
else
|
||||
SUBDIRS = Lesson1 Lesson2 Lesson3 Lesson4 Lesson5
|
||||
endif
|
||||
|
|
|
|||
1
eo/tutorial/ParadisEO/.cvsignore
Normal file
1
eo/tutorial/ParadisEO/.cvsignore
Normal file
|
|
@ -0,0 +1 @@
|
|||
Makefile.in
|
||||
1
eo/tutorial/ParadisEO/Lesson1/.cvsignore
Normal file
1
eo/tutorial/ParadisEO/Lesson1/.cvsignore
Normal file
|
|
@ -0,0 +1 @@
|
|||
Makefile.in
|
||||
19
eo/tutorial/ParadisEO/Lesson1/Makefile.am
Normal file
19
eo/tutorial/ParadisEO/Lesson1/Makefile.am
Normal 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
|
||||
1
eo/tutorial/ParadisEO/Makefile.am
Normal file
1
eo/tutorial/ParadisEO/Makefile.am
Normal file
|
|
@ -0,0 +1 @@
|
|||
SUBDIRS = Lesson1
|
||||
Reference in a new issue