This patch checks for libs instead of programs in configure.ac for sqlite3 and postgesql.
Patch submitted by amirouche
This commit is contained in:
parent
d4ae4c9f97
commit
26da3271f6
11
configure.ac
11
configure.ac
@ -144,13 +144,16 @@ dnl----
|
|||||||
dnl
|
dnl
|
||||||
AC_PROG_MKDIR_P
|
AC_PROG_MKDIR_P
|
||||||
AC_PROG_INSTALL
|
AC_PROG_INSTALL
|
||||||
|
AC_CHECK_PROG(HAVE_PKG_CONFIG, pkg-config, yes)
|
||||||
|
AS_IF([test "x$HAVE_PKG_CONFIG" = "x"],
|
||||||
|
[AC_MSG_ERROR([you need pkg-config])])
|
||||||
|
|
||||||
# Check for a supported database program
|
# Check for a supported database program
|
||||||
AC_PATH_PROG([SQLITE], [sqlite3])
|
PKG_CHECK_EXISTS([sqlite3], HAVE_SQLITE3="yes")
|
||||||
AC_PATH_PROG([POSTGRES], [postgres])
|
PKG_CHECK_EXISTS([pq], HAVE_PQ="yes")
|
||||||
AS_IF([test "x$SQLITE" = x -a "x$POSTGRES" = "x"],
|
|
||||||
[AC_MSG_ERROR([SQLite or PostgreSQL is required])])
|
|
||||||
|
|
||||||
|
AS_IF([test "x$HAVE_SQLITE3" = "x" -a "x$HAVE_PQ" = "x"],
|
||||||
|
[AC_MSG_ERROR([SQLite or PostgreSQL is required])])
|
||||||
|
|
||||||
dnl--PC_PYTHON_SITE_PACKAGE_DIR---------------------------------------
|
dnl--PC_PYTHON_SITE_PACKAGE_DIR---------------------------------------
|
||||||
dnl This uses PYTHON_SITE_DIR to construct a directory for this
|
dnl This uses PYTHON_SITE_DIR to construct a directory for this
|
||||||
|
Loading…
x
Reference in New Issue
Block a user