mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
3f99d87418
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>
20 lines
644 B
Plaintext
20 lines
644 B
Plaintext
AC_DEFUN([AC_PACKAGE_WANT_NDBM],
|
|
[ AC_CHECK_HEADERS(ndbm.h, [ have_db=true ], [ have_db=false ])
|
|
libgdbm=""
|
|
AC_SUBST(libgdbm)
|
|
AC_SUBST(have_db)
|
|
])
|
|
|
|
AC_DEFUN([AC_PACKAGE_WANT_GDBM],
|
|
[ 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="${libgdbm} ${libexecdir}${libdirsuffix}/libgdbm.a"
|
|
fi
|
|
AC_SUBST(libgdbm)
|
|
AC_SUBST(have_db)
|
|
])
|