Added gpsd support.
[osmocom-bb.git] / src / host / layer23 / configure.ac
1 dnl Process this file with autoconf to produce a configure script
2 AC_INIT
3
4 AM_INIT_AUTOMAKE(layer23, 0.0.0)
5
6 dnl kernel style compile messages
7 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
8
9 dnl checks for programs
10 AC_PROG_MAKE_SET
11 AC_PROG_CC
12 AC_PROG_INSTALL
13 AC_PROG_RANLIB
14
15 dnl checks for libraries
16 PKG_CHECK_MODULES(LIBOSMOCORE, libosmocore)
17 PKG_CHECK_MODULES(LIBOSMOVTY, libosmovty)
18 AC_CHECK_LIB(gps, gps_open, CFLAGS+=" -D_USE_GPSD" LDFLAGS+=" -lgps",,)
19
20 dnl checks for header files
21 AC_HEADER_STDC
22
23 dnl Checks for typedefs, structures and compiler characteristics
24
25 AC_OUTPUT(
26     src/Makefile
27     src/common/Makefile
28     src/misc/Makefile
29     src/mobile/Makefile
30     include/Makefile
31     include/osmocom/Makefile
32     include/osmocom/bb/Makefile
33     include/osmocom/bb/common/Makefile
34     include/osmocom/bb/misc/Makefile
35     include/osmocom/bb/mobile/Makefile
36     Makefile)