1 dnl Copyright (C) 2009 Sun Microsystems, Inc.
2 dnl This file is free software; Sun Microsystems, Inc.
3 dnl gives unlimited permission to copy and/or distribute it,
4 dnl with or without modifications, as long as this notice is preserved.
6 AC_DEFUN([_PANDORA_SEARCH_LIBSQLITE3],[
7 AC_REQUIRE([AC_LIB_PREFIX])
9 dnl --------------------------------------------------------------------
10 dnl Check for libsqlite3
11 dnl --------------------------------------------------------------------
13 AC_ARG_ENABLE([libsqlite3],
14 [AS_HELP_STRING([--disable-libsqlite3],
15 [Build with libsqlite3 support @<:@default=on@:>@])],
16 [ac_enable_libsqlite3="$enableval"],
17 [ac_enable_libsqlite3="yes"])
19 AS_IF([test "x$ac_enable_libsqlite3" = "xyes"],[
20 AC_LIB_HAVE_LINKFLAGS(sqlite3,,[
25 sqlite3_open(NULL, &db);
31 AM_CONDITIONAL(HAVE_LIBSQLITE3, [test "x${ac_cv_libsqlite3}" = "xyes"])
34 AC_DEFUN([PANDORA_HAVE_LIBSQLITE3],[
35 AC_REQUIRE([_PANDORA_SEARCH_LIBSQLITE3])
38 AC_DEFUN([PANDORA_REQUIRE_LIBSQLITE3],[
39 AC_REQUIRE([_PANDORA_SEARCH_LIBSQLITE3])
40 AS_IF([test "x${ac_cv_libsqlite3}" = "xno"],
41 AC_MSG_ERROR([libsqlite3 is required for ${PACKAGE}]))