summaryrefslogtreecommitdiffstats
path: root/testsuites/aclocal/rtems-top.m4
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/aclocal/rtems-top.m4')
-rw-r--r--testsuites/aclocal/rtems-top.m46
1 files changed, 5 insertions, 1 deletions
diff --git a/testsuites/aclocal/rtems-top.m4 b/testsuites/aclocal/rtems-top.m4
index d7efd0fc3d..51a4e95207 100644
--- a/testsuites/aclocal/rtems-top.m4
+++ b/testsuites/aclocal/rtems-top.m4
@@ -41,8 +41,12 @@ rtems_rootdir=${rtems_updir}
RTEMS_ROOT=${rtems_updir}'$(top_builddir)'
])
AC_SUBST([RTEMS_ROOT])
+
+AS_IF([test -n "${with_target_subdir}"],
+ [project_top="../${with_project_top}"],
+ [project_top="${with_project_top}"])
+AC_SUBST([PROJECT_TOPdir],[${project_top}${rtems_updir}'$(top_builddir)'])
-AC_SUBST([PROJECT_TOPdir],[${with_project_top}${rtems_updir}'$(top_builddir)'])
AC_SUBST([PROJECT_ROOT],[${with_project_root}${rtems_updir}'$(top_builddir)'])
AC_SUBST([dirstamp],[\${am__leading_dot}dirstamp])