ax_python_sqlite3.m4 495 B

1234567891011121314151617181920
  1. dnl @synopsis AX_PYTHON_SQLITE3
  2. dnl
  3. dnl Test for the Python sqlite3 module used by BIND10's datasource
  4. dnl
  5. AC_DEFUN([AX_PYTHON_SQLITE3], [
  6. # Check for the python sqlite3 module
  7. AC_MSG_CHECKING(for python sqlite3 module)
  8. if "$PYTHON" -c 'import sqlite3' 2>/dev/null ; then
  9. AC_MSG_RESULT(ok)
  10. else
  11. AC_MSG_RESULT(missing)
  12. if test "x$want_dns" = "xyes" ; then
  13. AC_MSG_ERROR([Missing sqlite3 python module that is required by DNS components.])
  14. fi
  15. fi
  16. ])dnl AX_PYTHON_SQLITE3