---
ChangeLog | 4 ++++
m4/oln-with-lib.m4 | 12 ++++--------
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index ca5ca4d..ffd8eec 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-10-20 Roland Levillain <roland(a)lrde.epita.fr>
+
+ * m4/oln-with-lib.m4: Revert the previous changes.
+
2010-10-21 Roland Levillain <roland(a)lrde.epita.fr>
Update HACKING.
diff --git a/m4/oln-with-lib.m4 b/m4/oln-with-lib.m4
index 64ee629..4f939cb 100644
--- a/m4/oln-with-lib.m4
+++ b/m4/oln-with-lib.m4
@@ -1,7 +1,6 @@
# -*- Autoconf -*-
-# Copyright (C) 2009, 2010 EPITA Research and Development Laboratory
-# (LRDE)
+# Copyright (C) 2009 EPITA Research and Development Laboratory (LRDE)
#
# This file is part of Olena.
#
@@ -74,20 +73,17 @@ AC_DEFUN([_OLN_WITH_LIB],
[use $1 (DIR = prefix for $1 installation)])])
$5_CPPFLAGS=''
$5_LDFLAGS=''
- base_inc_dir=''
- oln_have_$4=no
if test "x$with_$4" != xno; then
if test -n "$with_$4"; then
- base_inc_dir="${with_$4}/include/"
- $5_CPPFLAGS="-I${base_inc_dir}"
+ $5_CPPFLAGS="-I${with_$4}/include"
$5_LDFLAGS="-L${with_$4}/lib"
fi
oln_save_CPPFLAGS=$CPPFLAGS
oln_save_LDFLAGS=$LDFLAGS
CPPFLAGS="$CPPFLAGS $$5_CPPFLAGS"
LDFLAGS="$LDFLAGS $$5_LDFLAGS"
- header="${base_inc_dir}$2"
- AC_CHECK_HEADER([$header],
+ oln_have_$4=no
+ AC_CHECK_HEADER([$2],
[AC_CHECK_LIB([$3],
[main],
[oln_have_$4=yes
--
1.5.6.5