Changeset 29878 in project


Ignore:
Timestamp:
10/09/13 07:44:06 (8 years ago)
Author:
Ivan Raikov
Message:

nemo: added ida variant of granule cell tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release/4/nemo/trunk/examples/Granule/Granule_DeSouza10.nemo

    r29876 r29878  
    11221122)
    11231123
    1124     ("nestmodule_configure.ac" () 
     1124    ("nestmodule_configure_cvode.ac" () 
    11251125#<<EOF
    11261126AC_PREREQ(2.52)
     
    12161216AC_MSG_CHECKING([for SUNDIALS linker options ])
    12171217SUNDIALS_LDFLAGS="`$SUNDIALS_CONFIG -m cvode -t s -l c -s libs` -lblas -llapack"
     1218AC_MSG_RESULT($SUNDIALS_LDFLAGS)
     1219
     1220# Set the platform-dependent compiler flags based on the canonical
     1221# host string.  These flags are placed in AM_{C,CXX}FLAGS.  If
     1222# {C,CXX}FLAGS are given as environment variables, then they are
     1223# appended to the set of automatically chosen flags.  After
     1224# {C,CXX}FLAGS have been read out, they must be cleared, since
     1225# system-dependent defaults will otherwise be placed into the
     1226# Makefiles.  HEP 2004-12-20.
     1227
     1228# Before we can determine the proper compiler flags, we must know
     1229# which compiler we are using.  Since the pertaining AC macros run the
     1230# compiler and set CFLAGS, CXXFLAGS to system-dependent values, we
     1231# need to save command line/enviroment settings of these variables
     1232# first. AC_AIX must run before the compiler is run, so we must run it
     1233# here.
     1234# HEP 2004-12-21
     1235
     1236GRANULEMODULE_SAVE_CXXFLAGS=$CXXFLAGS
     1237
     1238# Must first check if we are on AIX
     1239AC_AIX
     1240
     1241# Check for C++ compiler, looking for the same compiler
     1242# used with NEST
     1243AC_PROG_CXX([ $NEST_COMPILER ])
     1244
     1245# the following is makeshift, should have the macro set proper
     1246# GRANULEMODULE_SET_CXXFLAGS
     1247AM_CXXFLAGS=$GRANULEMODULE_SAVE_CXXFLAGS
     1248CXXFLAGS=
     1249
     1250## Configure C environment
     1251
     1252AC_PROG_LD
     1253AC_PROG_INSTALL
     1254
     1255AC_LIBLTDL_CONVENIENCE     ## put libltdl into a convenience library
     1256AC_PROG_LIBTOOL            ## use libtool
     1257AC_CONFIG_SUBDIRS(libltdl) ## also configure subdir containing libltdl
     1258
     1259#-- Set the language to C++
     1260AC_LANG_CPLUSPLUS
     1261
     1262#-- Look for programs needed in the Makefile
     1263AC_PROG_CXXCPP
     1264AM_PROG_LIBTOOL
     1265AC_PATH_PROGS([MAKE],[gmake make],[make])
     1266
     1267# ---------------------------------------------------------------
     1268# Configure directories to be built
     1269# ---------------------------------------------------------------
     1270
     1271PKGDATADIR=$datadir/$PACKAGE
     1272PKGDOCDIR=$datadir/doc/$PACKAGE
     1273
     1274# set up directories from which to build help
     1275# second line replaces space with colon as separator
     1276HELPDIRS="$PKGSRCDIR $PKGSRCDIR/sli"
     1277HELPDIRS=`echo $HELPDIRS | tr " " ":"`
     1278
     1279#-- Replace these variables in *.in
     1280AC_SUBST(HAVE_NEST)
     1281AC_SUBST(NEST_CONFIG)
     1282AC_SUBST(NEST_CPPFLAGS)
     1283AC_SUBST(NEST_COMPILER)
     1284AC_SUBST(NEST_PREFIX)
     1285AC_SUBST(HELPDIRS)
     1286AC_SUBST(PKGSRCDIR)
     1287AC_SUBST(PKGBUILDDIR)
     1288AC_SUBST(PKGDATADIR)
     1289AC_SUBST(PKGDOCDIR)
     1290AC_SUBST(KERNEL)
     1291AC_SUBST(HOST)
     1292AC_SUBST(SED)
     1293AC_SUBST(LD)
     1294AC_SUBST(host_os)
     1295AC_SUBST(host_cpu)
     1296AC_SUBST(host_vendor)
     1297AC_SUBST(AS)
     1298AC_SUBST(CXX)
     1299AC_SUBST(AR)
     1300AC_SUBST(ARFLAGS)
     1301AC_SUBST(CXX_AR)
     1302AC_SUBST(AM_CXXFLAGS)
     1303AC_SUBST(AM_CFLAGS)
     1304AC_SUBST(MAKE)
     1305AC_SUBST(MAKE_FLAGS)
     1306AC_SUBST(INCLTDL)
     1307AC_SUBST(LIBLTDL)
     1308AC_SUBST(SUNDIALS_CONFIG)
     1309AC_SUBST(SUNDIALS_CPPFLAGS)
     1310AC_SUBST(SUNDIALS_LDFLAGS)
     1311
     1312AM_CONFIG_HEADER(granulemodule_config.h:granulemodule_config.h.in)
     1313AC_CONFIG_FILES(Makefile)
     1314
     1315# -----------------------------------------------
     1316# Create output
     1317# -----------------------------------------------
     1318AC_OUTPUT
     1319
     1320
     1321# -----------------------------------------------
     1322# Report, after output at end of configure run
     1323# Must come after AC_OUTPUT, so that it is
     1324# displayed after libltdl has been configured
     1325# -----------------------------------------------
     1326
     1327echo
     1328echo "-------------------------------------------------------"
     1329echo "Granule module Configuration Summary"
     1330echo "-------------------------------------------------------"
     1331echo
     1332echo "C++ compiler        : $CXX"
     1333echo "C++ compiler flags  : $AM_CXXFLAGS"
     1334echo "NEST compiler flags : $NEST_CPPFLAGS"
     1335echo "SUNDIALS compiler flags : $SUNDIALS_CPPFLAGS"
     1336echo "SUNDIALS linker flags : $SUNDIALS_LDFLAGS"
     1337
     1338# these variables will still contain '${prefix}'
     1339# we want to have the versions where this is resolved, too:
     1340eval eval eval  PKGDOCDIR_AS_CONFIGURED=$PKGDOCDIR
     1341eval eval eval  PKGDATADIR_AS_CONFIGURED=$PKGDATADIR
     1342
     1343echo
     1344echo "-------------------------------------------------------"
     1345echo
     1346echo "You can build and install Granule module now, using"
     1347echo "  make"
     1348echo "  make install"
     1349echo
     1350echo "Granule module will be installed to:"
     1351echo -n "  "; eval eval echo "$libdir"
     1352echo
     1353
     1354EOF
     1355)
     1356
     1357    ("nestmodule_configure_ida.ac" () 
     1358#<<EOF
     1359AC_PREREQ(2.52)
     1360
     1361AC_INIT(granulemodule, 1.0, raikov@oist.jp)
     1362
     1363# These variables are exported to include/config.h
     1364GRANULEMODULE_MAJOR=1
     1365GRANULEMODULE_MINOR=0
     1366GRANULEMODULE_PATCHLEVEL=0
     1367
     1368# Exporting source and build directories requires full path names.
     1369# Thus we have to expand.
     1370# Here, we are in top build dir, since source dir must exist, we can just
     1371# move there and call pwd
     1372if test "x$srcdir" = x ; then
     1373  PKGSRCDIR=`pwd`
     1374else
     1375  PKGSRCDIR=`cd $srcdir && pwd`
     1376fi
     1377PKGBUILDDIR=`pwd`
     1378
     1379# If this is not called, install-sh will be put into .. by bootstrap.sh
     1380# moritz, 06-26-06
     1381AC_CONFIG_AUX_DIR(.)
     1382
     1383AM_INIT_AUTOMAKE(nest, $GRANULEMODULE_VERSION)
     1384
     1385# obtain host system type; HEP 2004-12-20
     1386AC_CANONICAL_HOST
     1387
     1388# ------------------------------------------------------------------------
     1389# Handle options
     1390#
     1391# NOTE: No programs/compilations must be run in this section;
     1392#       otherwise CFLAGS and CXXFLAGS may take on funny default
     1393#       values.
     1394#       HEP 2004-12-20
     1395# ------------------------------------------------------------------------
     1396
     1397# nest-config
     1398NEST_CONFIG=`which nest-config`
     1399AC_ARG_WITH(nest,[  --with-nest=script  nest-config script including path],
     1400[
     1401  if test "$withval" != yes; then
     1402    NEST_CONFIG=$withval
     1403  else
     1404    AC_MSG_ERROR([--with-nest-config expects the nest-config script as argument. See README for details.])
     1405  fi
     1406])
     1407
     1408# -------------------------------------------
     1409# END Handle options
     1410# -------------------------------------------
     1411
     1412# sundials-config
     1413SUNDIALS_CONFIG=`which sundials-config`
     1414AC_ARG_WITH(sundials,[  --with-sundials=script  sundials-config script including path],
     1415[
     1416  if test "$withval" != yes; then
     1417    SUNDIALS_CONFIG=$withval
     1418#  else
     1419#    AC_MSG_ERROR([--with-sundials-config expects the sundials-config script as argument. See README for details.])
     1420  fi
     1421])
     1422
     1423
     1424# does nest-config work
     1425AC_MSG_CHECKING([for nest-config ])
     1426AC_CHECK_FILE($NEST_CONFIG, HAVE_NEST=yes,
     1427              AC_MSG_ERROR([No usable nest-config was found. You may want to use --with-nest-config.]))
     1428AC_MSG_RESULT(found)
     1429
     1430AC_MSG_CHECKING([for sundials-config ])
     1431AC_CHECK_FILE($SUNDIALS_CONFIG, HAVE_SUNDIALS=yes,
     1432              AC_MSG_WARN([No usable sundials-config was found. You may want to use --with-sundials-config.]))
     1433AC_MSG_RESULT(found)
     1434
     1435# the following will crash if nest-config does not run
     1436# careful, lines below must not break
     1437AC_MSG_CHECKING([for NEST directory information ])
     1438NEST_PREFIX=`$NEST_CONFIG --prefix`
     1439NEST_CPPFLAGS=`$NEST_CONFIG --cflags`
     1440NEST_COMPILER=`$NEST_CONFIG --compiler`
     1441if test $prefix = NONE; then prefix=`$NEST_CONFIG --prefix`; fi
     1442AC_MSG_RESULT($NEST_CPPFLAGS)
     1443
     1444
     1445AC_MSG_CHECKING([for SUNDIALS preprocessor flags ])
     1446SUNDIALS_CPPFLAGS="`$SUNDIALS_CONFIG -m ida -t s -l c -s cppflags`"
     1447AC_MSG_RESULT($SUNDIALS_CPPFLAGS)
     1448
     1449AC_MSG_CHECKING([for SUNDIALS linker options ])
     1450SUNDIALS_LDFLAGS="`$SUNDIALS_CONFIG -m ida -t s -l c -s libs` -lblas -llapack"
    12181451AC_MSG_RESULT($SUNDIALS_LDFLAGS)
    12191452
Note: See TracChangeset for help on using the changeset viewer.