- fi
-)
-
-dnl Don't use BDB unless it's needed
-bdb_required=no
-compiled_backends=""
-
-dnl Determine whether or not to use DB3 Concurrent Data Store
-AC_MSG_CHECKING([whether or not to use DB3 Concurrent Data Store])
-AC_ARG_WITH(cnid-cdb-backend,
- [ --with-cnid-cdb-backend enable CNID with Concurrent DB3 Data Store],
- if test x"$withval" = x"no"; then
- use_cdb_backend=no
- else
- use_cdb_backend=yes
- compiled_backends="$compiled_backends cdb"
- fi
- ,use_cdb_backend=yes
-)
-
-if test $use_cdb_backend = yes; then
- AC_MSG_RESULT([yes])
- AC_DEFINE(CNID_BACKEND_CDB, 1, [Define if CNID Concurrent DB3 backend should be compiled.])
- DEFAULT_CNID_SCHEME=cdb
- bdb_required=yes
-else
- AC_MSG_RESULT([no])
- fi
-
-dnl Determine whether or not to use Database Daemon CNID backend
-AC_MSG_CHECKING([whether or not to use Database Daemon CNID backend])
-AC_ARG_WITH(cnid-dbd-backend,
- [ --with-cnid-dbd-backend enable CNID with Database Daemon Data Store],
- if test x"$withval" = x"no"; then
- AC_MSG_RESULT([no])
- use_dbd_backend=no
- else
- use_dbd_backend=yes
- AC_MSG_RESULT([yes])
- fi
- ,use_dbd_backend=no
- AC_MSG_RESULT([no])
-)
-
-dnl Determine whether or not to use with transaction support in Database Daemon
-AC_MSG_CHECKING([whether or not to use Database Daemon with transaction support])
-AC_ARG_WITH(cnid-dbd-txn,
- [ --with-cnid-dbd-txn enable transaction support for dbd backend],
- if test x"$withval" = x"no"; then
- AC_MSG_RESULT([no])
- use_dbd_txn=no
- else
- use_dbd_txn=yes
- AC_MSG_RESULT([yes])
- fi
- ,use_dbd_txn=no
- AC_MSG_RESULT([no])
-)
-
-if test $use_dbd_txn = yes; then
- use_dbd_backend=yes
- AC_DEFINE(CNID_BACKEND_DBD_TXN, 1, [Define if CNID Database Daemon backend has transaction support])
-else
- if test x"$use_dbd_backend" = x; then
- use_dbd_backend=no
- fi
-fi
-
-if test $use_dbd_backend = yes; then
- compiled_backends="$compiled_backends dbd"
- AC_DEFINE(CNID_BACKEND_DBD, 1, [Define if CNID Database Daemon backend should be compiled.])
- if test x"$DEFAULT_CNID_SCHEME" = x; then
- DEFAULT_CNID_SCHEME=dbd
- fi
- bdb_required=yes
-fi
-AM_CONDITIONAL(BUILD_DBD_DAEMON, test x"$use_dbd_backend" = x"yes")
-
-dnl Determine whether or not to use DB3 transactional data store
-AC_MSG_CHECKING([whether or not to use DB3 transactional DB store])
-AC_ARG_WITH(cnid-db3-backend,
- [ --with-cnid-db3-backend enable CNID with transactional DB3 Data Store],
- if test x"$withval" = x"no"; then
- use_db3_backend=no
- else
- use_db3_backend=yes
- $compiled_backends="$compile_backends db3"
- fi
- ,use_db3_backend=no
-)
-
-if test $use_db3_backend = yes; then
- AC_MSG_RESULT([yes])
- AC_DEFINE(CNID_BACKEND_DB3, 1, [Define if CNID transactional DB3 backend should be compiled.])
- if test x"$DEFAULT_CNID_SCHEME" = x; then
- DEFAULT_CNID_SCHEME=db3
- fi
- bdb_required=yes
- else
- AC_MSG_RESULT([no])
- fi
-
-dnl Determine whether or not to use LAST DID scheme
-AC_MSG_CHECKING([whether or not to use LAST DID scheme])
-AC_ARG_WITH(cnid-last-backend,
- [ --with-cnid-last-backend enable LAST CNID scheme],
- if test x"$withval" = x"no"; then
- use_last_backend=no
- else
- use_last_backend=yes
- compiled_backends="$compiled_backends last"
- fi
- ,use_last_backend=no
-)
-
-if test $use_last_backend = yes; then
- AC_MSG_RESULT([yes])
- AC_DEFINE(CNID_BACKEND_LAST, 1, [Define if CNID LAST scheme backend should be compiled.])
- if test x"$DEFAULT_CNID_SCHEME" = x; then
- DEFAULT_CNID_SCHEME=last
- fi
-else
- AC_MSG_RESULT([no])
-fi
-
-dnl Determine whether or not to use HASH DID scheme
-AC_MSG_CHECKING([whether or not to use HASH DID scheme])
-AC_ARG_WITH(cnid-hash-backend,
- [ --with-cnid-hash-backend enable HASH CNID scheme],
- if test x"$withval" = x"no"; then
- use_hash_backend=no
- else
- use_hash_backend=yes
- compiled_backends="$compiled_backends hash"
- fi
- ,use_hash_backend=no
-)
-
-if test $use_hash_backend = yes; then
- AC_MSG_RESULT([yes])
- AC_DEFINE(CNID_BACKEND_HASH, 1, [Define if CNID HASH scheme backend should be compiled.])
- if test x"$DEFAULT_CNID_SCHEME" = x; then
- DEFAULT_CNID_SCHEME=hash
- fi
- else
- AC_MSG_RESULT([no])
- fi
-
-dnl Determine whether or not to use TDB DID scheme
-AC_MSG_CHECKING([whether or not to use TDB DID scheme])
-AC_ARG_WITH(cnid-tdb-backend,
- [ --with-cnid-tdb-backend enable DID CNID scheme],
- if test x"$withval" = x"no"; then
- use_tdb_backend=no
- else
- use_tdb_backend=yes
- compiled_backends="$compiled_backends tdb"
- fi
- ,use_tdb_backend=no
-)
-
-if test $use_tdb_backend = yes; then
- AC_MSG_RESULT([yes])
- AC_DEFINE(CNID_BACKEND_TDB, 1, [Define if CNID TDB scheme backend should be compiled.])
- if test x"$DEFAULT_TDB_SCHEME" = x; then
- DEFAULT_CNID_SCHEME=tdb
- fi
-else
- AC_MSG_RESULT([no])
-fi
-
-dnl Determine whether or not to use MTAB DID scheme
-AC_MSG_CHECKING([whether or not to use MTAB DID scheme])
-AC_ARG_WITH(cnid-mtab-backend,
- [ --with-cnid-mtab-backend enable MTAB CNID scheme],
- if test x"$withval" = x"no"; then
- use_mtab_backend=no
- else
- use_mtab_backend=yes
- compiled_backends="$compiled_backends mtab"
- fi
- ,use_mtab_backend=no
-)
-
-if test $use_mtab_backend = yes; then
- AC_MSG_RESULT([yes])
- AC_DEFINE(CNID_BACKEND_MTAB, 1, [Define if CNID MTAB scheme backend should be compiled.])
- if test x"$DEFAULT_CNID_SCHEME" = x; then
- DEFAULT_CNID_SCHEME=mtab
-fi
-else
- AC_MSG_RESULT([no])
-fi
-
-dnl Set default DID scheme
-AC_MSG_CHECKING([default DID scheme])
-AC_ARG_WITH(cnid-default-backend,
- [ --with-cnid-default-backend=val set default DID scheme],
- if test x"$withval" = x; then
- AC_MSG_RESULT([ignored])