summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorDave Chinner <david@fromorbit.com>2010-05-04 16:01:26 +1000
committerDave Chinner <david@fromorbit.com>2010-05-04 16:01:26 +1000
commit3f99d8741831b78cfbf35cd1a305e54445997431 (patch)
treeddbc09c05730a6f8d439ae19e4ce487fc99cc53c /m4
parent80d1e88a24b305a59c080a7e236d9fb3982493ee (diff)
xfsqa: build dbtest on debian platforms
Set up autoconf to find the correct headers and compat libraries for debian squeeze, and massage the includes to ensure the right headers get included. Also fix a compile warning that was emitted now that it is being compiled. Signed-off-by: Dave Chinner <david@fromorbit.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'm4')
-rw-r--r--m4/package_gdbmdev.m48
1 files changed, 6 insertions, 2 deletions
diff --git a/m4/package_gdbmdev.m4 b/m4/package_gdbmdev.m4
index d826acdf..6580fbae 100644
--- a/m4/package_gdbmdev.m4
+++ b/m4/package_gdbmdev.m4
@@ -6,9 +6,13 @@ AC_DEFUN([AC_PACKAGE_WANT_NDBM],
])
AC_DEFUN([AC_PACKAGE_WANT_GDBM],
- [ AC_CHECK_HEADERS([gdbm/ndbm.h], [ have_db=true ], [ have_db=false ])
+ [ AC_CHECK_HEADERS([gdbm/ndbm.h, gdbm-ndbm.h], [ have_db=true ], [ have_db=false ])
+ libgdbm=""
+ if test $have_db = true -a -f ${libexecdir}${libdirsuffix}/libgdbm_compat.a; then
+ libgdbm="${libexecdir}${libdirsuffix}/libgdbm_compat.a"
+ fi
if test $have_db = true -a -f ${libexecdir}${libdirsuffix}/libgdbm.a; then
- libgdbm="${libexecdir}${libdirsuffix}/libgdbm.a"
+ libgdbm="${libgdbm} ${libexecdir}${libdirsuffix}/libgdbm.a"
fi
AC_SUBST(libgdbm)
AC_SUBST(have_db)