]> arthur.barton.de Git - netatalk.git/blob - macros/did-scheme.m4
Check for sys/quota.h and include it if and only if this is defined in unix.h.
[netatalk.git] / macros / did-scheme.m4
1 dnl $Id: did-scheme.m4,v 1.1 2003-06-08 14:52:37 srittau Exp $
2
3 AC_DEFUN([NETATALK_ARG_DID], [
4
5 dnl Don't use BDB unless it's needed
6 bdb_required=no
7
8 dnl Determine DID scheme
9
10 AC_MSG_CHECKING([for DID scheme to use])
11 AC_ARG_WITH(did,
12         [  --with-did=SCHEME       set DID scheme (cnid,last) [cnid]],
13         [ did_scheme="$withval" ],
14         [ did_scheme="cnid" ]
15 )
16
17 if test "x$did_scheme" = "xlast"; then
18         AC_DEFINE(USE_LASTDID, 1, [Define if the last DID scheme should be used])
19         AC_MSG_RESULT([last])
20 elif test "x$did_scheme" = "xcnid"; then
21         bdb_required="yes"
22         AC_DEFINE(CNID_DB, 1, [Define if the CNID DB DID scheme should be used])
23         AC_MSG_RESULT([CNID DB])
24 else
25         AC_MSG_ERROR([unknown DID scheme])
26 fi
27 AM_CONDITIONAL(COMPILE_CNID, test "x$did_scheme" = "xcnid")
28
29 dnl Check for Berkeley DB library
30 if test "x$bdb_required" = "xyes"; then
31         AC_PATH_BDB(, [AC_MSG_ERROR([Berkeley DB library not found!])])
32 fi
33
34 ])