From 0680474a3f8ba2ba1c26c1a7577bca39fe325d45 Mon Sep 17 00:00:00 2001
From: Martin Nolte <mnolte@dune-project.org>
Date: Wed, 13 Jan 2010 15:50:09 +0000
Subject: [PATCH] make autoconf work for dune-istl again (at least for me)

- autoconf documentation states that ifelse is remapped to m4_if
- the library check is AC_CHECK_LIB

I hope this is what was intended

@Christian: Could you please verify this?

[[Imported from SVN: r5823]]
---
 m4/dune_check_lib.m4 | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/m4/dune_check_lib.m4 b/m4/dune_check_lib.m4
index f3b350e9c..2f4ef3a54 100644
--- a/m4/dune_check_lib.m4
+++ b/m4/dune_check_lib.m4
@@ -8,13 +8,13 @@ AC_DEFUN([DUNE_CHECK_LIB_EXT],
 [
   dune_cle_save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS -L$1"
-  m4_ifelse(m4_eval([$# <= 3]), [1],
-    [AC_CHECK_LIBS([$2], [$3],
+  m4_if(m4_eval([$# <= 3]), [1],
+    [AC_CHECK_LIB([$2], [$3],
       [
         LIBS="-L$1 -l$2 $LIBS"
         AC_DEFINE([HAVE_LIB]m4_translit([[$2]], [-a-z], [_A-Z]), [1],
                   [Define to 1 if you have the `$2' library (-l$2).])
       ])],
-    [AC_CHECK_LIBS(m4_shift($@))])
+    [AC_CHECK_LIB(m4_shift($@))])
   LDFLAGS="$dune_cle_save_LDFLAGS"
 ])
-- 
GitLab