From: wolf Date: Mon, 18 Sep 2000 07:35:59 +0000 (+0000) Subject: Declare preprocessor variables DEAL_2_MAJOR/DEAL_2_MINOR X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8ec5939b7409b36b53b871751be28797a0ee68b;p=dealii-svn.git Declare preprocessor variables DEAL_2_MAJOR/DEAL_2_MINOR git-svn-id: https://svn.dealii.org/trunk@3326 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/configure.in b/deal.II/configure.in index 2e6569f39a..59ac495a45 100644 --- a/deal.II/configure.in +++ b/deal.II/configure.in @@ -22,6 +22,13 @@ dnl Set the path to the deal.II libraries to `pwd` DEAL2_DIR=`pwd` AC_SUBST(DEAL2_DIR) +dnl Set major and minor version numbers of the deal.II library +DEAL_2_MAJOR=`cat Version | perl -pi -e 's/^(\d+)\..*/$1/;'` +DEAL_2_MINOR=`cat Version | perl -pi -e 's/^\d+\.(\d+).*/$1/;'` +AC_DEFINE_UNQUOTED(DEAL_2_MAJOR, $DEAL_2_MAJOR) +AC_DEFINE_UNQUOTED(DEAL_2_MINOR, $DEAL_2_MINOR) +AC_MSG_RESULT(Configuring deal.II version `cat Version`) + dnl Check for machine type operating system AC_CANONICAL_SYSTEM