This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
Vadim Yanitskiy gerrit-no-reply at lists.osmocom.orgVadim Yanitskiy has uploaded this change for review. ( https://gerrit.osmocom.org/13640 Change subject: configure.ac: properly check for libdbi SQLite3 driver ...................................................................... configure.ac: properly check for libdbi SQLite3 driver Since we use SQLite3 driver of libdbi, we need to make sure that it is installed and available. Checking just for libdbi in not enough. For more details, please see: http://libdbi.sourceforge.net/docs/programmers-guide/addtoproject.html Change-Id: I7f7c719d41d9be28527e4ac3a8b2869c87337074 --- M configure.ac 1 file changed, 13 insertions(+), 0 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-msc refs/changes/40/13640/1 diff --git a/configure.ac b/configure.ac index 4cfb774..693044d 100644 --- a/configure.ac +++ b/configure.ac @@ -110,8 +110,21 @@ dnl checks for header files AC_HEADER_STDC + +dnl Check for the libdbi library +AC_CHECK_LIB(dbi,dbi_initialize) AC_CHECK_HEADERS(dbi/dbd.h,,AC_MSG_ERROR(DBI library is not installed)) +dnl To check for the availability and function of a particular +dnl driver, we need a runtime check (since the driver is loaded +dnl dynamically). By default, we use the SQLite3 driver. +AC_MSG_CHECKING([for libdbi SQLite3 driver (libdbd-sqlite3)]) +AC_RUN_IFELSE( + [AC_LANG_PROGRAM(, + [[dbi_initialize(0); return(dbi_conn_new("sqlite3") ? 0 : 1);]])], + [AC_MSG_RESULT([yes])], + [AC_MSG_FAILURE([SQLite3 driver is not installed])]) + dnl Checks for typedefs, structures and compiler characteristics -- To view, visit https://gerrit.osmocom.org/13640 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-msc Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I7f7c719d41d9be28527e4ac3a8b2869c87337074 Gerrit-Change-Number: 13640 Gerrit-PatchSet: 1 Gerrit-Owner: Vadim Yanitskiy <axilirator at gmail.com> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190415/9de5e89e/attachment.htm>