blob: ee5052bc17f5f37e005efe4c4335a607798d7bdd [file] [log] [blame]
Harald Welte57f6b022012-06-14 21:05:44 +08001dnl Process this file with autoconf to produce a configure script
2AC_INIT([osmo-pcu],
3 m4_esyscmd([./git-version-gen .tarball-version]),
Harald Welte477e79e2012-06-18 12:21:03 +08004 [osmocom-pcu@lists.osmocom.org])
Harald Welte57f6b022012-06-14 21:05:44 +08005
6AM_INIT_AUTOMAKE([dist-bzip2])
7
8dnl kernel style compile messages
9m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
10
11dnl checks for programs
12AC_PROG_MAKE_SET
13AC_PROG_CC
14AC_PROG_CXX
15AC_PROG_INSTALL
16LT_INIT
17
18dnl checks for header files
19AC_HEADER_STDC
20
21dnl Checks for typedefs, structures and compiler characteristics
22
23dnl checks for libraries
24PKG_CHECK_MODULES(LIBOSMOCORE, libosmocore >= 0.3.9)
25PKG_CHECK_MODULES(LIBOSMOVTY, libosmovty)
26PKG_CHECK_MODULES(LIBOSMOGSM, libosmogsm >= 0.3.3)
Ivan Kluchnikovef7f28c2012-07-12 14:49:15 +040027PKG_CHECK_MODULES(LIBOSMOGB, libosmogb >= 0.5.1.4)
Harald Welte57f6b022012-06-14 21:05:44 +080028
29AC_MSG_CHECKING([whether to enable sysmocom-bts hardware support])
30AC_ARG_ENABLE(sysmocom-bts,
31 AC_HELP_STRING([--enable-sysmocom-bts],
32 [enable code for sysmocom femto-bts [default=no]]),
33 [enable_sysmocom_bts="yes"],[enable_sysmocom_bts="no"])
34AC_MSG_RESULT([$enable_sysmocom_bts])
35AM_CONDITIONAL(ENABLE_SYSMOBTS, test "x$enable_sysmocom_bts" = "xyes")
36
Andreas Eversberga23c7ee2012-12-18 10:47:28 +010037AC_MSG_CHECKING([whether to enable direct DSP access for PDCH of sysmocom-bts])
38AC_ARG_ENABLE(sysmocom-dsp,
39 AC_HELP_STRING([--enable-sysmocom-dsp],
40 [enable code for sysmocom DSP [default=no]]),
41 [enable_sysmocom_dsp="yes"],[enable_sysmocom_dsp="no"])
42AC_MSG_RESULT([$enable_sysmocom_dsp])
43AM_CONDITIONAL(ENABLE_SYSMODSP, test "x$enable_sysmocom_dsp" = "xyes")
44
Harald Welte57f6b022012-06-14 21:05:44 +080045AC_OUTPUT(
46 src/Makefile
47 Makefile)