Changeset 31319 in project


Ignore:
Timestamp:
08/31/14 11:38:02 (5 years ago)
Author:
Ivan Raikov
Message:

nemo: fixes to sli scripts for Golgi model

Location:
release/4/nemo/trunk/examples/Golgi
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • release/4/nemo/trunk/examples/Golgi/Golgi_DeSouza10.nemo

    r31316 r31319  
    23652365)
    23662366
     2367    ("nestmodule_configure_gsl.ac" () 
     2368#<<EOF
     2369AC_PREREQ(2.52)
     2370
     2371AC_INIT(golgimodule, 1.0, raikov@oist.jp)
     2372
     2373# These variables are exported to include/config.h
     2374GOLGIMODULE_MAJOR=1
     2375GOLGIMODULE_MINOR=0
     2376GOLGIMODULE_PATCHLEVEL=0
     2377
     2378# Exporting source and build directories requires full path names.
     2379# Thus we have to expand.
     2380# Here, we are in top build dir, since source dir must exist, we can just
     2381# move there and call pwd
     2382if test "x$srcdir" = x ; then
     2383  PKGSRCDIR=`pwd`
     2384else
     2385  PKGSRCDIR=`cd $srcdir && pwd`
     2386fi
     2387PKGBUILDDIR=`pwd`
     2388
     2389# If this is not called, install-sh will be put into .. by bootstrap.sh
     2390# moritz, 06-26-06
     2391AC_CONFIG_AUX_DIR(.)
     2392
     2393AM_INIT_AUTOMAKE(nest, $GOLGIMODULE_VERSION)
     2394
     2395# obtain host system type; HEP 2004-12-20
     2396AC_CANONICAL_HOST
     2397
     2398# ------------------------------------------------------------------------
     2399# Handle options
     2400#
     2401# NOTE: No programs/compilations must be run in this section;
     2402#       otherwise CFLAGS and CXXFLAGS may take on funny default
     2403#       values.
     2404#       HEP 2004-12-20
     2405# ------------------------------------------------------------------------
     2406
     2407# nest-config
     2408NEST_CONFIG=`which nest-config`
     2409AC_ARG_WITH(nest,[  --with-nest=script  nest-config script including path],
     2410[
     2411  if test "$withval" != yes; then
     2412    NEST_CONFIG=$withval
     2413  else
     2414    AC_MSG_ERROR([--with-nest-config expects the nest-config script as argument. See README for details.])
     2415  fi
     2416])
     2417
     2418# -------------------------------------------
     2419# END Handle options
     2420# -------------------------------------------
     2421
     2422
     2423# does nest-config work
     2424AC_MSG_CHECKING([for nest-config ])
     2425AC_CHECK_FILE($NEST_CONFIG, HAVE_NEST=yes,
     2426              AC_MSG_ERROR([No usable nest-config was found. You may want to use --with-nest-config.]))
     2427AC_MSG_RESULT(found)
     2428
     2429AC_MSG_CHECKING([for sundials-config ])
     2430AC_CHECK_FILE($SUNDIALS_CONFIG, HAVE_SUNDIALS=yes,
     2431              AC_MSG_WARN([No usable sundials-config was found. You may want to use --with-sundials-config.]))
     2432AC_MSG_RESULT(found)
     2433
     2434# the following will crash if nest-config does not run
     2435# careful, lines below must not break
     2436AC_MSG_CHECKING([for NEST directory information ])
     2437NEST_PREFIX=`$NEST_CONFIG --prefix`
     2438NEST_CPPFLAGS=`$NEST_CONFIG --cflags`
     2439NEST_COMPILER=`$NEST_CONFIG --compiler`
     2440if test $prefix = NONE; then prefix=`$NEST_CONFIG --prefix`; fi
     2441AC_MSG_RESULT($NEST_CPPFLAGS)
     2442
     2443
     2444# Set the platform-dependent compiler flags based on the canonical
     2445# host string.  These flags are placed in AM_{C,CXX}FLAGS.  If
     2446# {C,CXX}FLAGS are given as environment variables, then they are
     2447# appended to the set of automatically chosen flags.  After
     2448# {C,CXX}FLAGS have been read out, they must be cleared, since
     2449# system-dependent defaults will otherwise be placed into the
     2450# Makefiles.  HEP 2004-12-20.
     2451
     2452# Before we can determine the proper compiler flags, we must know
     2453# which compiler we are using.  Since the pertaining AC macros run the
     2454# compiler and set CFLAGS, CXXFLAGS to system-dependent values, we
     2455# need to save command line/enviroment settings of these variables
     2456# first. AC_AIX must run before the compiler is run, so we must run it
     2457# here.
     2458# HEP 2004-12-21
     2459
     2460GOLGIMODULE_SAVE_CXXFLAGS=$CXXFLAGS
     2461
     2462# Must first check if we are on AIX
     2463AC_AIX
     2464
     2465# Check for C++ compiler, looking for the same compiler
     2466# used with NEST
     2467AC_PROG_CXX([ $NEST_COMPILER ])
     2468
     2469# the following is makeshift, should have the macro set proper
     2470# GOLGIMODULE_SET_CXXFLAGS
     2471AM_CXXFLAGS=$GOLGIMODULE_SAVE_CXXFLAGS
     2472CXXFLAGS=
     2473
     2474## Configure C environment
     2475
     2476AC_PROG_LD
     2477AC_PROG_INSTALL
     2478
     2479AC_LIBLTDL_CONVENIENCE     ## put libltdl into a convenience library
     2480AC_PROG_LIBTOOL            ## use libtool
     2481AC_CONFIG_SUBDIRS(libltdl) ## also configure subdir containing libltdl
     2482
     2483#-- Set the language to C++
     2484AC_LANG_CPLUSPLUS
     2485
     2486#-- Look for programs needed in the Makefile
     2487AC_PROG_CXXCPP
     2488AM_PROG_LIBTOOL
     2489AC_PATH_PROGS([MAKE],[gmake make],[make])
     2490
     2491# ---------------------------------------------------------------
     2492# Configure directories to be built
     2493# ---------------------------------------------------------------
     2494
     2495PKGDATADIR=$datadir/$PACKAGE
     2496PKGDOCDIR=$datadir/doc/$PACKAGE
     2497
     2498# set up directories from which to build help
     2499# second line replaces space with colon as separator
     2500HELPDIRS="$PKGSRCDIR $PKGSRCDIR/sli"
     2501HELPDIRS=`echo $HELPDIRS | tr " " ":"`
     2502
     2503#-- Replace these variables in *.in
     2504AC_SUBST(HAVE_NEST)
     2505AC_SUBST(NEST_CONFIG)
     2506AC_SUBST(NEST_CPPFLAGS)
     2507AC_SUBST(NEST_COMPILER)
     2508AC_SUBST(NEST_PREFIX)
     2509AC_SUBST(HELPDIRS)
     2510AC_SUBST(PKGSRCDIR)
     2511AC_SUBST(PKGBUILDDIR)
     2512AC_SUBST(PKGDATADIR)
     2513AC_SUBST(PKGDOCDIR)
     2514AC_SUBST(KERNEL)
     2515AC_SUBST(HOST)
     2516AC_SUBST(SED)
     2517AC_SUBST(LD)
     2518AC_SUBST(host_os)
     2519AC_SUBST(host_cpu)
     2520AC_SUBST(host_vendor)
     2521AC_SUBST(AS)
     2522AC_SUBST(CXX)
     2523AC_SUBST(AR)
     2524AC_SUBST(ARFLAGS)
     2525AC_SUBST(CXX_AR)
     2526AC_SUBST(AM_CXXFLAGS)
     2527AC_SUBST(AM_CFLAGS)
     2528AC_SUBST(MAKE)
     2529AC_SUBST(MAKE_FLAGS)
     2530AC_SUBST(INCLTDL)
     2531AC_SUBST(LIBLTDL)
     2532
     2533AM_CONFIG_HEADER(golgimodule_config.h:golgimodule_config.h.in)
     2534AC_CONFIG_FILES(Makefile)
     2535
     2536# -----------------------------------------------
     2537# Create output
     2538# -----------------------------------------------
     2539AC_OUTPUT
     2540
     2541
     2542# -----------------------------------------------
     2543# Report, after output at end of configure run
     2544# Must come after AC_OUTPUT, so that it is
     2545# displayed after libltdl has been configured
     2546# -----------------------------------------------
     2547
     2548echo
     2549echo "-------------------------------------------------------"
     2550echo "Golgi module Configuration Summary"
     2551echo "-------------------------------------------------------"
     2552echo
     2553echo "C++ compiler        : $CXX"
     2554echo "C++ compiler flags  : $AM_CXXFLAGS"
     2555echo "NEST compiler flags : $NEST_CPPFLAGS"
     2556
     2557# these variables will still contain '${prefix}'
     2558# we want to have the versions where this is resolved, too:
     2559eval eval eval  PKGDOCDIR_AS_CONFIGURED=$PKGDOCDIR
     2560eval eval eval  PKGDATADIR_AS_CONFIGURED=$PKGDATADIR
     2561
     2562echo
     2563echo "-------------------------------------------------------"
     2564echo
     2565echo "You can build and install Golgi module now, using"
     2566echo "  make"
     2567echo "  make install"
     2568echo
     2569echo "Golgi module will be installed to:"
     2570echo -n "  "; eval eval echo "$libdir"
     2571echo
     2572
     2573EOF
     2574)
     2575
     2576    ("nestmodule_makefile_gsl.am" () 
     2577#<<EOF
     2578
     2579# Automake file for external dynamic modules for NEST
     2580#
     2581# Hans Ekkehard Plesser, April 2008
     2582# Automake file for the Developer Module
     2583#
     2584# libgolgimodule is built as a normal, installable library.
     2585# It will be installed to $prefix/lib by make install.
     2586#
     2587# Headers from this directory are not to be installed upon
     2588# make install. They are therefore included in _SOURCES.
     2589
     2590
     2591libdir= @libdir@/nest
     2592
     2593lib_LTLIBRARIES=      golgimodule.la libgolgimodule.la
     2594
     2595golgimodule_la_CXXFLAGS= @AM_CXXFLAGS@
     2596golgimodule_la_SOURCES=  golgimodule.cpp      golgimodule.h      \
     2597                      Golgi.cpp Golgi.h
     2598golgimodule_la_LDFLAGS=  -module
     2599
     2600libgolgimodule_la_CXXFLAGS= $(golgimodule_la_CXXFLAGS) -DLINKED_MODULE
     2601libgolgimodule_la_SOURCES=  $(golgimodule_la_SOURCES)
     2602
     2603MAKEFLAGS= @MAKE_FLAGS@
     2604
     2605AM_CPPFLAGS= @NEST_CPPFLAGS@ \
     2606             @INCLTDL@     
     2607
     2608AM_LDFLAGS =
     2609
     2610.PHONY: install-slidoc
     2611
     2612nobase_pkgdata_DATA=\
     2613        golgimodule.sli
     2614
     2615install-slidoc:
     2616        NESTRCFILENAME=/dev/null $(DESTDIR)$(NEST_PREFIX)/bin/sli --userargs="@HELPDIRS@" $(NEST_PREFIX)/share/nest/sli/install-help.sli
     2617
     2618install-data-hook: install-exec install-slidoc
     2619
     2620EXTRA_DIST= sli
     2621
     2622EOF
     2623)
     2624
    23672625    ("nestmodule_configure_cvode.ac" () 
    23682626#<<EOF
     
    25982856)
    25992857
    2600     ("nestmodule_makefile.am" () 
     2858    ("nestmodule_makefile_sundials.am" () 
    26012859#<<EOF
    26022860
     
    30033261   const std::string golginest::GolgiModule::commandstring(void) const
    30043262   {
    3005      /* 1. Tell interpreter that we provide the C++ part of GolgiModule with the
    3006            current revision number.
    3007         2. Instruct the interpreter to check that golgimodule-init.sli exists,
    3008            provides at least version 1.0 of the SLI interface to GolgiModule, and
    3009            to load it.
    3010       */
    3011      return std::string(
    3012        "/golgimodule /C++ ($Revision: 8512 $) provide-component "
    3013        "/golgimodule /SLI (7165) require-component"
    3014        );
     3263     return std::string("");
    30153264   }
    30163265
  • release/4/nemo/trunk/examples/Golgi/Golgi_DeSouza10_fn.nemo

    r31316 r31319  
    23302330   const std::string golginest::GolgiModule::commandstring(void) const
    23312331   {
    2332      /* 1. Tell interpreter that we provide the C++ part of GolgiModule with the
    2333            current revision number.
    2334         2. Instruct the interpreter to check that golgimodule-init.sli exists,
    2335            provides at least version 1.0 of the SLI interface to GolgiModule, and
    2336            to load it.
    2337       */
    2338      return std::string(
    2339        "/golgimodule /C++ ($Revision: 8512 $) provide-component "
    2340        "/golgimodule /SLI (7165) require-component"
    2341        );
     2332     return std::string("");
    23422333   }
    23432334
  • release/4/nemo/trunk/examples/Golgi/Golgi_Solinas08.nemo

    r31316 r31319  
    21982198   const std::string golginest::GolgiModule::commandstring(void) const
    21992199   {
    2200      /* 1. Tell interpreter that we provide the C++ part of GolgiModule with the
    2201            current revision number.
    2202         2. Instruct the interpreter to check that golgimodule-init.sli exists,
    2203            provides at least version 1.0 of the SLI interface to GolgiModule, and
    2204            to load it.
    2205       */
    2206      return std::string(
    2207        "/golgimodule /C++ ($Revision: 8512 $) provide-component "
    2208        "/golgimodule /SLI (7165) require-component"
    2209        );
     2200     return std::string("");
    22102201   }
    22112202
  • release/4/nemo/trunk/examples/Golgi/Golgi_Solinas08_fn.nemo

    r31316 r31319  
    22652265   const std::string golginest::GolgiModule::commandstring(void) const
    22662266   {
    2267      /* 1. Tell interpreter that we provide the C++ part of GolgiModule with the
    2268            current revision number.
    2269         2. Instruct the interpreter to check that golgimodule-init.sli exists,
    2270            provides at least version 1.0 of the SLI interface to GolgiModule, and
    2271            to load it.
    2272       */
    2273      return std::string(
    2274        "/golgimodule /C++ ($Revision: 8512 $) provide-component "
    2275        "/golgimodule /SLI (7165) require-component"
    2276        );
     2267     return std::string("");
    22772268   }
    22782269
Note: See TracChangeset for help on using the changeset viewer.