From c536f2998812613d9ffb0d67883c6d958eb5bf60 Mon Sep 17 00:00:00 2001
From: Claus-Justus Heine <Claus-Justus.Heine@IANS.Uni-Stuttgart.DE>
Date: Fri, 2 Oct 2015 14:04:29 +0000
Subject: [PATCH] Bump version to 3.0.2

---
 NEWS         |  9 +++++++++
 configure.ac | 14 +++++++++-----
 2 files changed, 18 insertions(+), 5 deletions(-)

diff --git a/NEWS b/NEWS
index 6abf7ef..7835892 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,12 @@
+2015-10-03
+	ALBERTA 3.0.2
+
+	Get rid of libltdl when --disable-fem-toolbox is "active" and get rid
+	of some compiler warnings when including the stuff into C++ code.
+
+	Some of the basis function implementations had a chance to return
+	a pointer to a local non-static buffer.
+
 2014-05-07
 	ALBERTA 3.0.1
 
diff --git a/configure.ac b/configure.ac
index e485955..9fa43c3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,7 +1,7 @@
 # Process this file with autoconf to produce a configure script.
 
 AC_PREREQ(2.59)
-AC_INIT([alberta], [3.0.1], [Claus-Justus.Heine@IANS.Uni-Stuttgart.DE])
+AC_INIT([alberta], [3.0.2], [Claus-Justus.Heine@IANS.Uni-Stuttgart.DE])
 AC_CONFIG_SRCDIR([alberta/src/Common/alberta.h])
 AC_CONFIG_MACRO_DIR([m4])
 
@@ -299,6 +299,9 @@ else
     with_blas=no
 fi
 
+# Check if __attribute__((unused)) is supported
+ALBERTA_CHECK_UNUSED
+
 #
 # Debugging. Should come first because if not set we can forget about
 # ALBERTA_DEBUG_CFLAGS
@@ -616,10 +619,6 @@ AC_DEFINE([SIZEOF_DOF_FREE_UNIT],
   [SIZEOF_LONG],
   [size of the integer type used for DOF_FREE_UNIT])
 
-# Check for libltdl
-AC_CHECK_LIB([ltdl],[lt_dlinit])
-AC_CHECK_HEADERS([ltdl.h])
-
 # try do define HAVE_STRUCT_SIGACTION_SA_SIGACTION for SIGFPE-handler.
 AC_CHECK_MEMBERS([struct sigaction.sa_sigaction],,,[#include <signal.h>])
 
@@ -667,10 +666,15 @@ ALBERTA_ENABLE_FLAG([graphics],
   1,
   ALBERTA_USE_GRAPHICS,
   [SUBST cond define])
+  # Check for libltdl
+  AC_CHECK_LIB([ltdl],[lt_dlinit])
+  AC_CHECK_HEADERS([ltdl.h])
 else
   AM_CONDITIONAL(ALBERTA_USE_GRAPHICS, false)
   AC_SUBST(ALBERTA_USE_GRAPHICS)
   AC_DEFINE(ALBERTA_USE_GRAPHICS, 0, [])
+  AC_DEFINE(HAVE_LIBLTDL, 0, [])
+  AC_DEFINE(HAVE_LTDL_H, 0, [])
 fi
 
 if test "${ALBERTA_USE_GRAPHICS}" = 1; then
-- 
GitLab