AM_CONDITIONAL([WANT_DEBUG],[test "${enable_debug}" = "yes"])
-AC_ARG_ENABLE(core-odbc-support,
- [AS_HELP_STRING([--enable-core-odbc-support], [Compile with ODBC Support])],,[enable_core_odbc_support="no"])
-AX_LIB_ODBC
-if test "$ac_cv_found_odbc" = "yes" ; then
- enable_core_odbc_support="yes"
-fi
-if test "x$enable_core_odbc_support" != "xno"; then
- AC_CHECK_LIB([odbc], [SQLDisconnect],, AC_MSG_ERROR([no usable libodbc; please install unixodbc devel package or equivalent]))
+AC_ARG_ENABLE(core-odbc-support,
+ [AS_HELP_STRING([--enable-core-odbc-support], [Compile with ODBC Support (default is optional)])],,[enable_core_odbc_support="optional"])
+if ! test "$enable_core_odbc_support" = "no"; then
+ AX_LIB_ODBC
+ if test "$ac_cv_found_odbc" = "yes" ; then
+ enable_core_odbc_support="yes"
+ elif test "$enable_core_odbc_support" = "yes"; then
+ AC_MSG_ERROR([no usable libodbc; please install unixodbc devel package or equivalent])
+ else
+ enable_core_odbc_support="no"
+ fi
fi
CHECK_LIBUUID