2010-03-22 16:30:19 +00:00
|
|
|
AC_INIT([libosmocore],
|
|
|
|
m4_esyscmd([./git-version-gen .tarball-version]),
|
|
|
|
[openbsc-devel@lists.openbsc.org])
|
2010-02-20 20:09:24 +00:00
|
|
|
|
2010-03-22 16:30:19 +00:00
|
|
|
AM_INIT_AUTOMAKE([dist-bzip2])
|
2010-02-20 20:09:24 +00:00
|
|
|
|
|
|
|
dnl kernel style compile messages
|
|
|
|
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
|
|
|
|
|
|
|
|
dnl checks for programs
|
|
|
|
AC_PROG_MAKE_SET
|
|
|
|
AC_PROG_CC
|
|
|
|
AC_PROG_INSTALL
|
2010-03-22 16:30:19 +00:00
|
|
|
LT_INIT
|
2010-02-20 20:09:24 +00:00
|
|
|
AC_PROG_LIBTOOL
|
|
|
|
|
2010-03-22 16:30:19 +00:00
|
|
|
AC_CONFIG_MACRO_DIR([m4])
|
|
|
|
|
2010-02-20 20:09:24 +00:00
|
|
|
dnl checks for header files
|
|
|
|
AC_HEADER_STDC
|
2011-05-22 10:25:57 +00:00
|
|
|
AC_CHECK_HEADERS(execinfo.h sys/select.h sys/socket.h syslog.h ctype.h)
|
2010-02-20 20:09:24 +00:00
|
|
|
|
2011-08-17 17:33:06 +00:00
|
|
|
AC_PATH_PROG(DOXYGEN,doxygen,false)
|
|
|
|
AM_CONDITIONAL(HAVE_DOXYGEN, test $DOXYGEN != false)
|
|
|
|
|
2010-02-20 20:09:24 +00:00
|
|
|
# The following test is taken from WebKit's webkit.m4
|
|
|
|
saved_CFLAGS="$CFLAGS"
|
|
|
|
CFLAGS="$CFLAGS -fvisibility=hidden "
|
|
|
|
AC_MSG_CHECKING([if ${CC} supports -fvisibility=hidden])
|
2011-05-24 13:16:13 +00:00
|
|
|
AC_COMPILE_IFELSE([AC_LANG_SOURCE([char foo;])],
|
2010-02-20 20:09:24 +00:00
|
|
|
[ AC_MSG_RESULT([yes])
|
|
|
|
SYMBOL_VISIBILITY="-fvisibility=hidden"],
|
|
|
|
AC_MSG_RESULT([no]))
|
|
|
|
CFLAGS="$saved_CFLAGS"
|
|
|
|
AC_SUBST(SYMBOL_VISIBILITY)
|
|
|
|
|
|
|
|
dnl Generate the output
|
|
|
|
AM_CONFIG_HEADER(config.h)
|
|
|
|
|
2010-03-07 19:24:30 +00:00
|
|
|
AC_ARG_ENABLE(talloc,
|
2010-07-25 14:16:42 +00:00
|
|
|
[AS_HELP_STRING(
|
|
|
|
[--disable-talloc],
|
|
|
|
[Disable building talloc memory allocator]
|
|
|
|
)],
|
2011-08-21 15:18:23 +00:00
|
|
|
[enable_talloc=$enableval], [enable_talloc="yes"])
|
|
|
|
AM_CONDITIONAL(ENABLE_TALLOC, [test x"$enable_talloc" = x"yes"])
|
2010-03-07 19:24:30 +00:00
|
|
|
|
2010-06-30 17:43:11 +00:00
|
|
|
AC_ARG_ENABLE(plugin,
|
2010-07-25 14:16:42 +00:00
|
|
|
[AS_HELP_STRING(
|
|
|
|
[--disable-plugin],
|
|
|
|
[Disable support for dlopen plugins],
|
|
|
|
)],
|
2011-08-21 15:18:23 +00:00
|
|
|
[enable_plugin=$enableval], [enable_plugin="yes"])
|
|
|
|
AM_CONDITIONAL(ENABLE_PLUGIN, test x"$enable_plugin" = x"yes")
|
2010-06-30 17:43:11 +00:00
|
|
|
|
2010-03-07 19:33:59 +00:00
|
|
|
AC_ARG_ENABLE(tests,
|
2010-07-25 14:16:42 +00:00
|
|
|
[AS_HELP_STRING(
|
|
|
|
[--disable-tests],
|
|
|
|
[Disable building test programs]
|
|
|
|
)],
|
2011-08-21 15:18:23 +00:00
|
|
|
[enable_tests=$enableval], [enable_tests="yes"])
|
|
|
|
AM_CONDITIONAL(ENABLE_TESTS, test x"$enable_tests" = x"yes")
|
2010-03-07 19:33:59 +00:00
|
|
|
|
2010-06-25 01:00:58 +00:00
|
|
|
AC_ARG_ENABLE(vty,
|
2010-07-25 14:16:42 +00:00
|
|
|
[AS_HELP_STRING(
|
|
|
|
[--disable-vty],
|
|
|
|
[Disable building VTY telnet interface]
|
|
|
|
)],
|
2011-08-21 15:18:23 +00:00
|
|
|
[enable_vty=$enableval], [enable_vty="yes"])
|
|
|
|
AM_CONDITIONAL(ENABLE_VTY, test x"$enable_vty" = x"yes")
|
2010-05-29 09:49:51 +00:00
|
|
|
|
2010-07-25 16:08:54 +00:00
|
|
|
AC_ARG_ENABLE(panic_infloop,
|
|
|
|
[AS_HELP_STRING(
|
|
|
|
[--enable-panic-infloop],
|
|
|
|
[Trigger infinite loop on panic rather than fprintf/abort]
|
|
|
|
)],
|
2011-08-21 15:18:23 +00:00
|
|
|
[panic_infloop=$enableval], [panic_infloop="no"])
|
|
|
|
if test x"$panic_infloop" = x"yes"
|
2010-07-25 16:08:54 +00:00
|
|
|
then
|
|
|
|
AC_DEFINE([PANIC_INFLOOP],[1],[Use infinite loop on panic rather than fprintf/abort])
|
|
|
|
fi
|
|
|
|
|
2010-08-05 22:48:43 +00:00
|
|
|
AC_ARG_ENABLE(bsc_fd_check,
|
|
|
|
[AS_HELP_STRING(
|
|
|
|
[--enable-bsc-fd-check],
|
|
|
|
[Instrument bsc_register_fd to check that the fd is registered]
|
|
|
|
)],
|
2011-08-21 15:18:23 +00:00
|
|
|
[fd_check=$enableval], [fd_check="no"])
|
|
|
|
if test x"$fd_check" = x"no"
|
2010-08-05 22:48:43 +00:00
|
|
|
then
|
|
|
|
AC_DEFINE([BSC_FD_CHECK],[1],[Instrument the bsc_register_fd])
|
|
|
|
fi
|
|
|
|
|
2010-10-06 16:00:15 +00:00
|
|
|
AC_ARG_ENABLE(msgfile,
|
|
|
|
[AS_HELP_STRING(
|
|
|
|
[--disable-msgfile],
|
|
|
|
[Disable support for the msgfile],
|
|
|
|
)],
|
2011-08-21 15:18:23 +00:00
|
|
|
[enable_msgfile=$enableval], [enable_msgfile="yes"])
|
|
|
|
AM_CONDITIONAL(ENABLE_MSGFILE, test x"$enable_msgfile" = x"yes")
|
2010-10-06 16:00:15 +00:00
|
|
|
|
2010-05-29 09:49:51 +00:00
|
|
|
|
2010-02-20 20:09:24 +00:00
|
|
|
AC_OUTPUT(
|
|
|
|
libosmocore.pc
|
2010-10-24 16:23:10 +00:00
|
|
|
libosmocodec.pc
|
2010-05-19 17:42:32 +00:00
|
|
|
libosmovty.pc
|
2011-03-23 17:08:08 +00:00
|
|
|
libosmogsm.pc
|
2010-05-19 17:02:52 +00:00
|
|
|
include/osmocom/Makefile
|
|
|
|
include/osmocom/vty/Makefile
|
2010-10-24 16:23:10 +00:00
|
|
|
include/osmocom/codec/Makefile
|
2010-06-30 17:43:11 +00:00
|
|
|
include/osmocom/crypt/Makefile
|
2011-03-22 15:36:13 +00:00
|
|
|
include/osmocom/gsm/Makefile
|
|
|
|
include/osmocom/gsm/protocol/Makefile
|
|
|
|
include/osmocom/core/Makefile
|
2010-02-20 20:09:24 +00:00
|
|
|
include/Makefile
|
|
|
|
src/Makefile
|
2010-05-19 17:02:52 +00:00
|
|
|
src/vty/Makefile
|
2010-10-08 13:09:16 +00:00
|
|
|
src/codec/Makefile
|
2011-03-23 17:08:08 +00:00
|
|
|
src/gsm/Makefile
|
2010-02-20 20:09:24 +00:00
|
|
|
tests/Makefile
|
|
|
|
tests/timer/Makefile
|
|
|
|
tests/sms/Makefile
|
2010-10-06 16:00:15 +00:00
|
|
|
tests/msgfile/Makefile
|
2010-10-11 05:56:06 +00:00
|
|
|
tests/ussd/Makefile
|
2010-12-29 10:57:48 +00:00
|
|
|
tests/smscb/Makefile
|
2011-09-01 12:47:31 +00:00
|
|
|
tests/bits/Makefile
|
2011-08-02 11:44:54 +00:00
|
|
|
utils/Makefile
|
2011-08-20 10:54:17 +00:00
|
|
|
Doxyfile.core
|
2011-08-17 17:21:07 +00:00
|
|
|
Doxyfile.gsm
|
|
|
|
Doxyfile.vty
|
|
|
|
Doxyfile.codec
|
2010-02-20 20:09:24 +00:00
|
|
|
Makefile)
|