[DBI_LIBS=${withval}],
[DBI_LIBS=/usr/lib/x86_64-linux-gnu/dbd/])
+AC_ARG_WITH([perlbase],
+[ --with-perlbase=path base location to install Perl modules (default based on Config.pm)],
+[PERL_BASE=${withval}],
+[PERL_BASE=x])
+AC_SUBST([PERL_BASE])
+
# If the passed in value doesn't work, fall back to reasonable defaults
# Distributions are starting to package a good version of libdbi / libdbd
if ! test -d "$DBI_LIBS"; then
fi
AC_SUBST([DBI_LIBS])
+AM_CONDITIONAL(CHECK_TESTS, test x$enable_tests = xyes)
+
if test "x$openils_core" = "xtrue"; then
AC_PATH_PROG([OSRF_CONFIG], [osrf_config])
AC_FUNC_STRTOD
AC_CHECK_FUNCS([localtime_r memset nl_langinfo setlocale strcasecmp strchr strdup strerror strncasecmp])
+ #---------------------------------
+ # Check for unit test framework.
+ #---------------------------------
+ PKG_CHECK_MODULES([CHECK], [check >= 0.9.0], [enable_tests=yes],
+ [enable_tests=no])
+ if test "x$enable_tests" = "xno"; then
+ AC_MSG_WARN(Check unit testing framework not found.)
+ fi
+
#----------------------------
# Create Makefiles/Output
#----------------------------