diff options
author | Michal 'vorner' Vaner <michal.vaner@nic.cz> | 2013-08-12 16:31:25 +0200 |
---|---|---|
committer | Michal 'vorner' Vaner <michal.vaner@nic.cz> | 2013-08-12 16:31:25 +0200 |
commit | 68b075b70cd9b3570b81397d0be3ae27f3baa5ba (patch) | |
tree | 5d2b311f7ecfa58e4af79269a1808f55bcaf3326 /m4macros | |
parent | [master] Merge branch 'trac2984' (additional DHCPv6 hooks) (diff) | |
download | kea-68b075b70cd9b3570b81397d0be3ae27f3baa5ba.tar.xz kea-68b075b70cd9b3570b81397d0be3ae27f3baa5ba.zip |
[2939] Check for python sqlite3 module
Diffstat (limited to 'm4macros')
-rw-r--r-- | m4macros/ax_python_sqlite3.m4 | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/m4macros/ax_python_sqlite3.m4 b/m4macros/ax_python_sqlite3.m4 new file mode 100644 index 0000000000..f4076ba5e4 --- /dev/null +++ b/m4macros/ax_python_sqlite3.m4 @@ -0,0 +1,17 @@ +dnl @synopsis AX_PYTHON_SQLITE3 +dnl +dnl Test for the Python sqlite3 module used by BIND10's datasource +dnl + +AC_DEFUN([AX_PYTHON_SQLITE3], [ + +# Check for the python sqlite3 module +AC_MSG_CHECKING(for python sqlite3 module) +if "$PYTHON" -c 'import sqlite3' 2>/dev/null ; then + AC_MSG_RESULT(ok) +else + AC_MSG_RESULT(missing) + AC_MSG_ERROR([Missing sqlite3 python module.]) +fi + +])dnl AX_PYTHON_SQLITE3 |