No empty .Rs/.Re
[netbsd-mini2440.git] / crypto / dist / heimdal / cf / otp.m4
blobea29beac86edbe8506f2aa206a123a45a80bf526
1 dnl $Heimdal: otp.m4 14147 2004-08-25 14:14:01Z joda $
2 dnl $NetBSD$
3 dnl
4 dnl check requirements for OTP library
5 dnl
6 AC_DEFUN([rk_OTP],[
7 AC_REQUIRE([rk_DB])dnl
8 AC_ARG_ENABLE(otp,
9         AS_HELP_STRING([--disable-otp],[if you don't want OTP support]))
10 if test "$enable_otp" = yes -a "$db_type" = unknown; then
11         AC_MSG_ERROR([OTP requires a NDBM/DB compatible library])
13 if test "$enable_otp" != no; then
14         if test "$db_type" != unknown; then
15                 enable_otp=yes
16         else
17                 enable_otp=no
18         fi
20 if test "$enable_otp" = yes; then
21         AC_DEFINE(OTP, 1, [Define if you want OTP support in applications.])
22         LIB_otp='$(top_builddir)/lib/otp/libotp.la'
23         AC_SUBST(LIB_otp)
25 AC_MSG_CHECKING([whether to enable OTP library])
26 AC_MSG_RESULT($enable_otp)
27 AM_CONDITIONAL(OTP, test "$enable_otp" = yes)dnl