blob: 9fe9fdd42215718cb31035389e19da3cd326a3d5 [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 Welted6790092012-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)
Harald Welted6790092012-06-18 12:21:03 +080027PKG_CHECK_MODULES(LIBOSMOGB, libosmogb >= 0.5.2)
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
37AC_OUTPUT(
38 src/Makefile
39 Makefile)