blob: fd9ad28926fe207523d0e7a2d0127a9903e00401 [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]),
4 [osmocom-pcu@lists.openbsc.org])
5
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)
27
28AC_MSG_CHECKING([whether to enable sysmocom-bts hardware support])
29AC_ARG_ENABLE(sysmocom-bts,
30 AC_HELP_STRING([--enable-sysmocom-bts],
31 [enable code for sysmocom femto-bts [default=no]]),
32 [enable_sysmocom_bts="yes"],[enable_sysmocom_bts="no"])
33AC_MSG_RESULT([$enable_sysmocom_bts])
34AM_CONDITIONAL(ENABLE_SYSMOBTS, test "x$enable_sysmocom_bts" = "xyes")
35
36AC_OUTPUT(
37 src/Makefile
38 Makefile)