summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2023-01-16 18:02:31 +0100
committerpespin <pespin@sysmocom.de>2023-01-17 18:16:34 +0000
commitb8cc5b8c9a5566e3726277844e2ddf84c50a3f91 (patch)
tree791d31bdc35a8dc06e3f04c4292eb8b7102f0271
parent0621ff9cbd4bf825ef52958eefce30e3523c988a (diff)
layer23: generate config.h
Follow-up commits will add some extra checks we want to have in config.h Include config.h in files using PACKAGE_VERSION. Change-Id: Ic779a3168012780feef8d173371387d09d383bfd
-rw-r--r--src/host/layer23/configure.ac3
-rw-r--r--src/host/layer23/src/common/main.c2
-rw-r--r--src/host/layer23/src/mobile/app_mobile.c2
-rw-r--r--src/host/layer23/src/modem/app_modem.c2
4 files changed, 9 insertions, 0 deletions
diff --git a/src/host/layer23/configure.ac b/src/host/layer23/configure.ac
index 85765ae4..81c0e656 100644
--- a/src/host/layer23/configure.ac
+++ b/src/host/layer23/configure.ac
@@ -89,6 +89,9 @@ dnl Checks for typedefs, structures and compiler characteristics
AC_MSG_RESULT([CFLAGS="$CFLAGS"])
AC_MSG_RESULT([CPPFLAGS="$CPPFLAGS"])
+dnl Generate the output
+AM_CONFIG_HEADER(config.h)
+
AC_OUTPUT(
src/Makefile
src/common/Makefile
diff --git a/src/host/layer23/src/common/main.c b/src/host/layer23/src/common/main.c
index eecd29f3..2cdf5d46 100644
--- a/src/host/layer23/src/common/main.c
+++ b/src/host/layer23/src/common/main.c
@@ -50,6 +50,8 @@
#include <fcntl.h>
#include <signal.h>
+#include "config.h"
+
void *l23_ctx = NULL;
static char *sap_socket_path = "/tmp/osmocom_sap";
diff --git a/src/host/layer23/src/mobile/app_mobile.c b/src/host/layer23/src/mobile/app_mobile.c
index ae4845db..5bb19209 100644
--- a/src/host/layer23/src/mobile/app_mobile.c
+++ b/src/host/layer23/src/mobile/app_mobile.c
@@ -54,6 +54,8 @@
#include <l1ctl_proto.h>
+#include "config.h"
+
extern void *l23_ctx;
extern struct llist_head ms_list;
extern int vty_reading;
diff --git a/src/host/layer23/src/modem/app_modem.c b/src/host/layer23/src/modem/app_modem.c
index 93f3b541..7dcda175 100644
--- a/src/host/layer23/src/modem/app_modem.c
+++ b/src/host/layer23/src/modem/app_modem.c
@@ -46,6 +46,8 @@
#include <l1ctl_proto.h>
+#include "config.h"
+
static struct {
struct osmocom_ms *ms;
enum ccch_mode ccch_mode;