diff --git a/CommonLibs/Makefile.am b/CommonLibs/Makefile.am index 26a55ed8..ed9cf29f 100644 --- a/CommonLibs/Makefile.am +++ b/CommonLibs/Makefile.am @@ -78,7 +78,7 @@ URLEncodeTest_SOURCES = URLEncodeTest.cpp URLEncodeTest_LDADD = libcommon.la BitVectorTest_SOURCES = BitVectorTest.cpp -BitVectorTest_LDADD = libcommon.la $(SQLITE_LA) +BitVectorTest_LDADD = libcommon.la $(SQLITE3_LIBS) InterthreadTest_SOURCES = InterthreadTest.cpp InterthreadTest_LDADD = libcommon.la @@ -92,19 +92,19 @@ TimevalTest_SOURCES = TimevalTest.cpp TimevalTest_LDADD = libcommon.la VectorTest_SOURCES = VectorTest.cpp -VectorTest_LDADD = libcommon.la $(SQLITE_LA) +VectorTest_LDADD = libcommon.la $(SQLITE3_LIBS) RegexpTest_SOURCES = RegexpTest.cpp RegexpTest_LDADD = libcommon.la ConfigurationTest_SOURCES = ConfigurationTest.cpp -ConfigurationTest_LDADD = libcommon.la $(SQLITE_LA) +ConfigurationTest_LDADD = libcommon.la $(SQLITE3_LIBS) # ReportingTest_SOURCES = ReportingTest.cpp # ReportingTest_LDADD = libcommon.la $(SQLITE_LA) LogTest_SOURCES = LogTest.cpp -LogTest_LDADD = libcommon.la $(SQLITE_LA) +LogTest_LDADD = libcommon.la $(SQLITE3_LIBS) F16Test_SOURCES = F16Test.cpp diff --git a/CommonLibs/sqlite3util.cpp b/CommonLibs/sqlite3util.cpp index 036ef2c4..2b19ee61 100644 --- a/CommonLibs/sqlite3util.cpp +++ b/CommonLibs/sqlite3util.cpp @@ -4,7 +4,7 @@ */ -#include "sqlite3.h" +#include #include "sqlite3util.h" #include diff --git a/Makefile.am b/Makefile.am index f9f5a5cd..56cb4ba6 100644 --- a/Makefile.am +++ b/Makefile.am @@ -21,7 +21,7 @@ include $(top_srcdir)/Makefile.common ACLOCAL_AMFLAGS = -I config -AM_CPPFLAGS = $(STD_DEFINES_AND_INCLUDES) $(USB_INCLUDES) $(WITH_INCLUDES) +AM_CPPFLAGS = $(STD_DEFINES_AND_INCLUDES) $(USB_INCLUDES) $(WITH_INCLUDES) $(SQLITE3_CFLAGS) AM_CXXFLAGS = -Wall -pthread -ldl #AM_CXXFLAGS = -Wall -O2 -NDEBUG -pthread -ldl #AM_CFLAGS = -Wall -O2 -NDEBUG -pthread -ldl diff --git a/Makefile.common b/Makefile.common index d7927a5f..c0fc8501 100644 --- a/Makefile.common +++ b/Makefile.common @@ -23,16 +23,13 @@ top_builddir = $(abs_top_builddir) COMMON_INCLUDEDIR = $(top_srcdir)/CommonLibs GSM_INCLUDEDIR = $(top_srcdir)/GSM -SQLITE_INCLUDEDIR = $(top_srcdir)/sqlite3 STD_DEFINES_AND_INCLUDES = \ $(SVNDEV) \ -I$(COMMON_INCLUDEDIR) \ - -I$(GSM_INCLUDEDIR) \ - -I$(SQLITE_INCLUDEDIR) + -I$(GSM_INCLUDEDIR) COMMON_LA = $(top_builddir)/CommonLibs/libcommon.la GSM_LA = $(top_builddir)/GSM/libGSM.la -SQLITE_LA = -lsqlite3 MOSTLYCLEANFILES = *~ diff --git a/Transceiver52M/Makefile.am b/Transceiver52M/Makefile.am index 667217f8..68cdf746 100644 --- a/Transceiver52M/Makefile.am +++ b/Transceiver52M/Makefile.am @@ -98,7 +98,7 @@ osmo_trx_LDADD = \ libtransceiver.la \ $(ARCH_LA) \ $(GSM_LA) \ - $(COMMON_LA) $(SQLITE_LA) + $(COMMON_LA) $(SQLITE3_LIBS) if USRP1 libtransceiver_la_SOURCES += USRPDevice.cpp diff --git a/configure.ac b/configure.ac index 0cf3cc59..649bb0e9 100644 --- a/configure.ac +++ b/configure.ac @@ -118,7 +118,10 @@ AM_CONDITIONAL(USRP1, [test "x$with_usrp1" = "xyes"]) AM_CONDITIONAL(ARCH_ARM, [test "x$with_neon" = "xyes" || test "x$with_neon_vfpv4" = "xyes"]) AM_CONDITIONAL(ARCH_ARM_A15, [test "x$with_neon_vfpv4" = "xyes"]) +AC_CHECK_LIB(sqlite3, sqlite3_open, , AC_MSG_ERROR(sqlite3 is not available)) + PKG_CHECK_MODULES(LIBUSB, libusb-1.0) +PKG_CHECK_MODULES(SQLITE3, sqlite3) AC_CHECK_HEADER([boost/config.hpp],[], [AC_MSG_ERROR([boost/config.hpp not found, install e.g. libboost-dev])]) diff --git a/debian/control b/debian/control index beb6f6a8..d016afad 100644 --- a/debian/control +++ b/debian/control @@ -5,6 +5,7 @@ Maintainer: Ivan Klyuchnikov Build-Depends: debhelper (>= 9), autotools-dev, libdbd-sqlite3, + libsqlite3-dev, pkg-config, dh-autoreconf, libuhd-dev,