diff --git a/configure b/configure index fcafb4878f08f5ff429bf1d920e831ffc8f49ae7..05dc22301b6f554d695356621ec758d633349bcf 100755 --- a/configure +++ b/configure @@ -656,6 +656,7 @@ infodir docdir oldincludedir includedir +runstatedir localstatedir sharedstatedir sysconfdir @@ -728,6 +729,7 @@ datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' +runstatedir='${localstatedir}/run' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' @@ -980,6 +982,15 @@ do | -silent | --silent | --silen | --sile | --sil) silent=yes ;; + -runstatedir | --runstatedir | --runstatedi | --runstated \ + | --runstate | --runstat | --runsta | --runst | --runs \ + | --run | --ru | --r) + ac_prev=runstatedir ;; + -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ + | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ + | --run=* | --ru=* | --r=*) + runstatedir=$ac_optarg ;; + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ @@ -1117,7 +1128,7 @@ fi for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ - libdir localedir mandir + libdir localedir mandir runstatedir do eval ac_val=\$$ac_var # Remove trailing slashes. @@ -1270,6 +1281,7 @@ Fine tuning of the installation directories: --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] + --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] @@ -3650,7 +3662,18 @@ if test "x$ac_cv_header_sbml_packages_fbc_common_FbcExtensionTypes_h" = xyes; th else as_fn_error $? "Could not find specific FBC header of libSBML: - make sure your libSBML version is >= 5.13 and including the FBC package." "$LINENO" 5 + make sure your libSBML version is >= 5.16 and including the FBC package." "$LINENO" 5 +fi + + + +ac_fn_c_check_header_compile "$LINENO" "sbml/packages/groups/common/GroupsExtensionTypes.h" "ac_cv_header_sbml_packages_groups_common_GroupsExtensionTypes_h" "#include <sbml/SBMLTypes.h> +" +if test "x$ac_cv_header_sbml_packages_groups_common_GroupsExtensionTypes_h" = xyes; then : + +else + as_fn_error $? "Could not find specific groups package header of libSBML: + make sure your libSBML version is >= 5.16 and including the groups package." "$LINENO" 5 fi diff --git a/configure.ac b/configure.ac index 060f6932c14f14f33e2e6a280c9e5f51d487e3f2..a74f142dd7d210135b5d958346898207ec7b563a 100644 --- a/configure.ac +++ b/configure.ac @@ -242,7 +242,12 @@ AC_CHECK_LIB([sbml], [readSBML], , AC_CHECK_HEADER([sbml/packages/fbc/common/FbcExtensionTypes.h], , AC_MSG_ERROR([Could not find specific FBC header of libSBML: - make sure your libSBML version is >= 5.13 and including the FBC package.]), + make sure your libSBML version is >= 5.16 and including the FBC package.]), + [#include <sbml/SBMLTypes.h>]) + +AC_CHECK_HEADER([sbml/packages/groups/common/GroupsExtensionTypes.h], , + AC_MSG_ERROR([Could not find specific groups package header of libSBML: + make sure your libSBML version is >= 5.16 and including the groups package.]), [#include <sbml/SBMLTypes.h>]) #AC_CHECK_LIB([sbml], [SBMLExtensionRegistry_getRegisteredPackages], ,