-AC_ARG_ENABLE(lastdid,
- [ --enable-lastdid enable build without DID dev/inode mapping kludge],
- if test "$enableval" = "yes"; then
- AC_DEFINE(USE_LASTDID, 1)
- AC_MSG_RESULT([enabling build without DID dev/inode mapping kludge])
+AC_ARG_ENABLE(force-uidgid,
+ [ --enable-force-uidgid allow forcing of uid/gid per volume (BROKEN) ],
+ if test "$enableval" = "yes"; then
+ AC_DEFINE(FORCE_UIDGID, 1)
+ AC_MSG_RESULT([enabling forcing of uid/gid per volume])
+ fi
+)
+
+dnl Don't use DB3 unless it's needed
+db3_required=no
+
+dnl Check for CNID DB support
+AC_MSG_CHECKING([whether CNID support should be enabled])
+AC_ARG_ENABLE(cnid-db,
+ [ --enable-cnid-db use persistent cnid database per volume (EXPERIMENTAL) ],
+ [
+ if test "x$enableval" = "xyes"; then
+ dnl Now we need DB3
+ db3_required="yes"
+ AC_DEFINE(CNID_DB)
+ AC_MSG_RESULT([yes])
+ else
+ AC_MSG_RESULT([no])
+ fi
+ ],[AC_MSG_RESULT([no])]
+)
+
+dnl Check for Berkeley DB3 library
+if test "x$db3_required" = "xyes"; then
+ AC_PATH_DB3(, [AC_MSG_ERROR([Berkeley DB3 library not found!])])
+fi
+CFLAGS="$CFLAGS $DB3_CFLAGS"
+LIBS="$LIBS $DB3_LIBS"
+
+AC_ARG_WITH(did,
+ [ --with-did=SCHEME set DID scheme (last,mtab)],
+ if test "x$withval" != "xno" ; then
+ if test "$withval" = "last"; then
+ AC_DEFINE(USE_LASTDID, 1)
+ AC_MSG_RESULT([enabling build without DID dev/inode mapping kludge])
+ fi
+ if test "$withval" = "mtab"; then
+ AC_DEFINE(DID_MTAB, 1)
+ AC_MSG_RESULT([enabling mtab-based DID creation support])
+ fi