summaryrefslogtreecommitdiffstats
path: root/aclocal/rtems-top.m4
diff options
context:
space:
mode:
Diffstat (limited to 'aclocal/rtems-top.m4')
-rw-r--r--aclocal/rtems-top.m44
1 files changed, 4 insertions, 0 deletions
diff --git a/aclocal/rtems-top.m4 b/aclocal/rtems-top.m4
index 67e3afe50f..7622c33c8f 100644
--- a/aclocal/rtems-top.m4
+++ b/aclocal/rtems-top.m4
@@ -11,6 +11,10 @@ AC_CHECK_PROGS(MAKE, gmake make)
AC_BEFORE([$0], [AC_CONFIG_AUX_DIR])dnl
AC_BEFORE([$0], [AM_INIT_AUTOMAKE])dnl
+## HACK to allow gnu-make conditionals in automake-Makefiles.
+ENDIF=endif
+AC_SUBST(ENDIF)
+
AC_ARG_WITH(target-subdir,
[ --with-target-subdir=DIR],
TARGET_SUBDIR="$withval",