<p>Vadim Yanitskiy has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/13640">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">configure.ac: properly check for libdbi SQLite3 driver<br><br>Since we use SQLite3 driver of libdbi, we need to make sure that<br>it is installed and available. Checking just for libdbi in not<br>enough. For more details, please see:<br><br>  http://libdbi.sourceforge.net/docs/programmers-guide/addtoproject.html<br><br>Change-Id: I7f7c719d41d9be28527e4ac3a8b2869c87337074<br>---<br>M configure.ac<br>1 file changed, 13 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-msc refs/changes/40/13640/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/configure.ac b/configure.ac</span><br><span>index 4cfb774..693044d 100644</span><br><span>--- a/configure.ac</span><br><span>+++ b/configure.ac</span><br><span>@@ -110,8 +110,21 @@</span><br><span> </span><br><span> dnl checks for header files</span><br><span> AC_HEADER_STDC</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+dnl Check for the libdbi library</span><br><span style="color: hsl(120, 100%, 40%);">+AC_CHECK_LIB(dbi,dbi_initialize)</span><br><span> AC_CHECK_HEADERS(dbi/dbd.h,,AC_MSG_ERROR(DBI library is not installed))</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+dnl To check for the availability and function of a particular</span><br><span style="color: hsl(120, 100%, 40%);">+dnl driver, we need a runtime check (since the driver is loaded</span><br><span style="color: hsl(120, 100%, 40%);">+dnl dynamically). By default, we use the SQLite3 driver.</span><br><span style="color: hsl(120, 100%, 40%);">+AC_MSG_CHECKING([for libdbi SQLite3 driver (libdbd-sqlite3)])</span><br><span style="color: hsl(120, 100%, 40%);">+AC_RUN_IFELSE(</span><br><span style="color: hsl(120, 100%, 40%);">+    [AC_LANG_PROGRAM(,</span><br><span style="color: hsl(120, 100%, 40%);">+        [[dbi_initialize(0); return(dbi_conn_new("sqlite3") ? 0 : 1);]])],</span><br><span style="color: hsl(120, 100%, 40%);">+    [AC_MSG_RESULT([yes])],</span><br><span style="color: hsl(120, 100%, 40%);">+    [AC_MSG_FAILURE([SQLite3 driver is not installed])])</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> </span><br><span> dnl Checks for typedefs, structures and compiler characteristics</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/13640">change 13640</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/13640"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-msc </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I7f7c719d41d9be28527e4ac3a8b2869c87337074 </div>
<div style="display:none"> Gerrit-Change-Number: 13640 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Vadim Yanitskiy <axilirator@gmail.com> </div>