Skip to content
Snippets Groups Projects
Select Git revision
  • a23f4efccde6e210f8d0737f8502dd20ad25ba69
  • master default protected
  • dev
3 results

configure.ac

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    configure.ac 10.11 KiB
    AC_INIT([sybilSBML], [3.0.2], [clausjonathan.fritzemeier@uni-duesseldorf.de])
    
    dnl # --------------------------------------------------------------------
    dnl # global (environment) variables
    dnl # --------------------------------------------------------------------
    dnl
    dnl # PKG_CPPFLAGS       C preprocessor flags -I...
    dnl # PKG_CFLAGS         C compiler flags
    dnl # PKG_LIBS           libraries -l...
    
    
    dnl # --------------------------------------------------------------------
    dnl # R compiler and flags
    dnl # --------------------------------------------------------------------
    
    : ${R_HOME=`R RHOME`}
    if test -z "${R_HOME}"; then
        echo "could not determine R_HOME"
        exit 1
    fi
    
    dnl # GNU R default settings
    CC=`"${R_HOME}/bin/R" CMD config CC`
    CPP=`"${R_HOME}/bin/R" CMD config CPP`
    CFLAGS=`"${R_HOME}/bin/R" CMD config CFLAGS`
    CPPFLAGS=`"${R_HOME}/bin/R" CMD config CPPFLAGS`
    AC_PROG_CC
    AC_PROG_CPP
    
    
    dnl # --------------------------------------------------------------------
    dnl # template config.h.in
    dnl # --------------------------------------------------------------------
    
    dnl # AC_CONFIG_HEADERS([src/config.h])
    
    
    dnl # --------------------------------------------------------------------
    dnl # test for global variables
    dnl # --------------------------------------------------------------------
    
    ARGS_OK="FALSE"
    
    if test [ -n "$PKG_CPPFLAGS" -a -n "$PKG_LIBS" ] ; then
        ARGS_OK="TRUE"
    else
        if test [ -n "$PKG_CPPFLAGS" -o -n "$PKG_LIBS" ] ; then
            AC_MSG_ERROR([Please set both variables: PKG_CPPFLAGS AND PKG_LIBS])
        fi
    fi
    
    
    dnl # --------------------------------------------------------------------
    dnl # get arguments
    dnl # --------------------------------------------------------------------
    
    AC_ARG_WITH(sbml-include,
                AC_HELP_STRING([--with-sbml-include=PATH],
                               [location of libSBML include directory]
                              ),
                [SBML_INCLUDE=$withval],
                [SBML_INCLUDE=""])
    
    AC_ARG_WITH(sbml-lib,
                AC_HELP_STRING([--with-sbml-lib=PATH],
                               [location of SBML callable library]
                              ),
                [SBML_LIB=$withval],
                [SBML_LIB=""])