diff options
author | Dave Chinner <david@fromorbit.com> | 2010-05-04 16:01:26 +1000 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2010-05-04 16:01:26 +1000 |
commit | 3f99d8741831b78cfbf35cd1a305e54445997431 (patch) | |
tree | ddbc09c05730a6f8d439ae19e4ce487fc99cc53c /m4 | |
parent | 80d1e88a24b305a59c080a7e236d9fb3982493ee (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.m4 | 8 |
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) |