configure.ac: check if LIBTRXCON_DIR (submodule) exists

Fail during the configure stage if the submodule is not fetched.

Change-Id: I06456c2087e160032f5bf8b36304477390f117d0
Related: OS#5599
changes/95/30795/3
Vadim Yanitskiy 3 months ago
parent 5e63151f9f
commit fe1b9cef40

@ -212,7 +212,12 @@ AS_IF([test "x$with_bladerf" = "xyes"], [
AC_MSG_CHECKING([whether to enable building MS TRX])
AS_IF([test "x$with_mstrx" = "xyes"], [
AC_CONFIG_SUBDIRS([osmocom-bb/src/host/trxcon])
AC_SUBST(LIBTRXCON_DIR, "osmocom-bb/src/host/trxcon")
LIBTRXCON_DIR="osmocom-bb/src/host/trxcon"
if ! test -d "$srcdir/$LIBTRXCON_DIR"; then
AC_MSG_RESULT([no])
AC_MSG_ERROR([$LIBTRXCON_DIR does not exist])
fi
AC_SUBST(LIBTRXCON_DIR)
AC_MSG_RESULT([yes])
], [
# Despite LIBTRXCON_DIR is added to SUBDIRS conditionally,

Loading…
Cancel
Save