aboutsummaryrefslogtreecommitdiff
path: root/m4/database.m4
diff options
context:
space:
mode:
authorConstantin Michael <constantin@codesynthesis.com>2011-07-22 15:55:44 +0200
committerConstantin Michael <constantin@codesynthesis.com>2011-07-22 15:55:44 +0200
commitf1de376fd1df540864b72e6e4c1edee731f05d6c (patch)
treed79837366181ef5489e7645028aedf4e6a2b0b29 /m4/database.m4
parent61f4a460fa3fb297b056597353e2e2f3330db7b3 (diff)
Make automake scripts PostgreSQL aware
Diffstat (limited to 'm4/database.m4')
-rw-r--r--m4/database.m45
1 files changed, 5 insertions, 0 deletions
diff --git a/m4/database.m4 b/m4/database.m4
index 9478016..476ec19 100644
--- a/m4/database.m4
+++ b/m4/database.m4
@@ -27,6 +27,10 @@ AC_ARG_WITH(
database=sqlite
AC_DEFINE([DATABASE_SQLITE], [1], [Using SQLite.])
;;
+ pgsql)
+ database=pgsql
+ AC_DEFINE([DATABASE_PGSQL], [1], [Using PostgreSQL.])
+ ;;
*)
AC_MSG_RESULT([])
AC_MSG_ERROR([unknown database $withval])
@@ -42,5 +46,6 @@ AC_SUBST([database])
AM_CONDITIONAL([DATABASE_MYSQL], [test x$database = xmysql])
AM_CONDITIONAL([DATABASE_SQLITE], [test x$database = xsqlite])
+AM_CONDITIONAL([DATABASE_PGSQL], [test x$database = xpgsql])
])dnl