Added generation of OPENPDKS_TOP from the configure script to
support technologies added as symbolic links, which can't use
".." to get back to the package top to reach the script files.
diff --git a/scripts/configure b/scripts/configure
index 7beeacc..45ef4e1 100755
--- a/scripts/configure
+++ b/scripts/configure
@@ -587,6 +587,7 @@
ac_subst_vars='LTLIBOBJS
LIBOBJS
+OPENPDKS_TOP
ENABLED_TECHS
EF_STYLE
SKY130_OSU_T18_PATH
@@ -2173,6 +2174,9 @@
ENABLED_TECHS=
+# Export the open_pdks top level directory
+OPENPDKS_TOP=`cd .. && pwd`
+
# detect PDKs based on directories that include Makefile.in files
@@ -2762,6 +2766,8 @@
# Export the list of enabled technologies to the Makefile
+# Export the top level directory of open_pdks
+
MAKEFILES=$(find -L .. -name "Makefile.in" | sed 's/\(.*\)\.in/\1/g')
ac_config_files="$ac_config_files $MAKEFILES"