Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2022-01-28 03:17:04 +0300
committerMike Frysinger <vapier@gentoo.org>2022-01-29 09:35:30 +0300
commit6444f108d9a4a6fac8462c116d4104889b5efb95 (patch)
treece46465ceabd749533a136e1decbfe8f3697bb13 /newlib/acinclude.m4
parent502cf4b7b5b79b83e8f41b4074212f9e27753f0b (diff)
newlib: export abs_newlib_basedir for all subdirs
When using the top-level configure script but subdir Makefiles, the newlib_basedir value gets a bit out of sync: it's relative to where configure lives, not where the Makefile lives. Move the abs setting from the top-level configure script into acinclude.m4 so we can rely on it being available everywhere. Although this commit doesn't use it anywhere, just lays the groundwork.
Diffstat (limited to 'newlib/acinclude.m4')
-rw-r--r--newlib/acinclude.m43
1 files changed, 3 insertions, 0 deletions
diff --git a/newlib/acinclude.m4 b/newlib/acinclude.m4
index 755f6e116..888d41794 100644
--- a/newlib/acinclude.m4
+++ b/newlib/acinclude.m4
@@ -109,6 +109,9 @@ else
fi
AC_SUBST(newlib_basedir)
+abs_newlib_basedir=`cd "${newlib_basedir}" && pwd`
+AC_SUBST(abs_newlib_basedir)
+
AC_CANONICAL_HOST
AM_INIT_AUTOMAKE([foreign no-installinfo no-dependencies no-dist no-define subdir-objects 1.15.1])